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