mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-05-11 18:10:49 +08:00
fix bugs
This commit is contained in:
@@ -11,7 +11,7 @@ const activeTab = ref(route.params.tab);
|
||||
// tabs
|
||||
const tabs = [
|
||||
{ title: "用户", icon: "mdi-account-outline", tab: "account" },
|
||||
{ title: "搜索", icon: "mdi-magnify", tab: "system" },
|
||||
{ title: "系统", icon: "mdi-cog", tab: "system" },
|
||||
{ title: "通知", icon: "mdi-bell-outline", tab: "notification" },
|
||||
];
|
||||
</script>
|
||||
|
||||
@@ -21,7 +21,10 @@ const loadNotificationSwitchs = async () => {
|
||||
// 调用API保存消息开关
|
||||
const saveNotificationSwitchs = async () => {
|
||||
try {
|
||||
const result: { [key: string]: any } = await api.post("message/switchs", messagemTypes.value);
|
||||
const result: { [key: string]: any } = await api.post(
|
||||
"message/switchs",
|
||||
messagemTypes.value
|
||||
);
|
||||
if (result.success) {
|
||||
$toast.success("保存通知消息设置成功");
|
||||
} else {
|
||||
@@ -74,7 +77,7 @@ onMounted(() => {
|
||||
<VDivider />
|
||||
|
||||
<VCardText>
|
||||
<VForm @submit.prevent="() => { }">
|
||||
<VForm @submit.prevent="() => {}">
|
||||
<div class="d-flex flex-wrap gap-4 mt-4">
|
||||
<VBtn mtype="submit" @click="saveNotificationSwitchs"> 保存 </VBtn>
|
||||
</div>
|
||||
|
||||
@@ -100,8 +100,8 @@ onMounted(() => {
|
||||
<template>
|
||||
<VRow>
|
||||
<VCol cols="12">
|
||||
<VCard title="搜索站点">
|
||||
<VCardSubtitle> 只有选中的站点才会在搜索中使用 </VCardSubtitle>
|
||||
<VCard title="索引站点">
|
||||
<VCardSubtitle> 只有选中的站点才会在搜索和订阅中使用 </VCardSubtitle>
|
||||
|
||||
<VCardItem>
|
||||
<VChipGroup v-model="selectedSites" column multiple>
|
||||
|
||||
Reference in New Issue
Block a user