diff --git a/src/layouts/components/ShortcutBar.vue b/src/layouts/components/ShortcutBar.vue index 7381a8ce..4e4a3bd7 100644 --- a/src/layouts/components/ShortcutBar.vue +++ b/src/layouts/components/ShortcutBar.vue @@ -7,6 +7,7 @@ import ModuleTestView from '@/views/system/ModuleTestView.vue' import MessageView from '@/views/system/MessageView.vue' import WordsView from '@/views/system/WordsView.vue' import CacheView from '@/views/system/CacheView.vue' +import AccountSettingService from '@/views/system/ServiceView.vue' import api from '@/api' import { useDisplay } from 'vuetify' import { getQueryValue } from '@/@core/utils' @@ -49,6 +50,9 @@ const wordsDialog = ref(false) // 缓存管理弹窗 const cacheDialog = ref(false) +// 定时服务弹窗 +const schedulerDialog = ref(false) + // 输入消息 const user_message = ref('') @@ -108,6 +112,13 @@ const shortcuts = [ dialog: 'cache', dialogRef: cacheDialog, }, + { + title: t('shortcut.scheduler.title'), + subtitle: t('shortcut.scheduler.subtitle'), + icon: 'mdi-list-box', + dialog: 'scheduler', + dialogRef: schedulerDialog, + }, { title: t('shortcut.system.title'), subtitle: t('shortcut.system.subtitle'), @@ -275,10 +286,10 @@ onMounted(() => { item.dialog === 'message' ? openMessageDialog() : item.dialog === 'words' - ? openDialog(item.dialogRef) - : item.dialog === 'cache' - ? openDialog(item.dialogRef) - : openDialog(item.dialogRef) + ? openDialog(item.dialogRef) + : item.dialog === 'cache' + ? openDialog(item.dialogRef) + : openDialog(item.dialogRef) " > @@ -420,6 +431,29 @@ onMounted(() => { + + + + + + + {{ t('shortcut.scheduler.subtitle') }} + + {{ t('setting.scheduler.subtitle') }} + + + + + + + + { - - - -
- -
-
-
- diff --git a/src/router/i18n-menu.ts b/src/router/i18n-menu.ts index 9efa7737..43a9431d 100644 --- a/src/router/i18n-menu.ts +++ b/src/router/i18n-menu.ts @@ -185,12 +185,6 @@ export function getSettingTabs(t: Composer['t']) { tab: 'subscribe', description: t('settingTabs.subscribe.description'), }, - { - title: t('settingTabs.scheduler.title'), - icon: 'mdi-list-box', - tab: 'scheduler', - description: t('settingTabs.scheduler.description'), - }, { title: t('settingTabs.notification.title'), icon: 'mdi-bell', diff --git a/src/views/setting/AccountSettingService.vue b/src/views/system/ServiceView.vue similarity index 94% rename from src/views/setting/AccountSettingService.vue rename to src/views/system/ServiceView.vue index 1b3ab564..3f1da9df 100644 --- a/src/views/setting/AccountSettingService.vue +++ b/src/views/system/ServiceView.vue @@ -70,10 +70,6 @@ useDataRefresh(