This commit is contained in:
jxxghp
2023-07-14 08:18:30 +08:00
parent a2b3ede80c
commit c52d2d3611
3 changed files with 8 additions and 5 deletions

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>