From a64d97774dfc3a3e41f4384021855ef413467919 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Thu, 11 Sep 2025 17:36:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=85=B3=E4=BA=8E=E5=AF=B9?= =?UTF-8?q?=E8=AF=9D=E6=A1=86=E5=92=8C=E5=BF=AB=E6=8D=B7=E6=A0=8F=E7=9A=84?= =?UTF-8?q?=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/dialog/AboutDialog.vue | 455 +++++++++++++------------ src/layouts/components/ShortcutBar.vue | 92 ++--- src/layouts/components/UserProfile.vue | 16 +- src/locales/en-US.ts | 2 + src/locales/zh-CN.ts | 2 + src/pages/setup.vue | 11 +- src/views/system/CacheView.vue | 34 +- 7 files changed, 323 insertions(+), 289 deletions(-) diff --git a/src/components/dialog/AboutDialog.vue b/src/components/dialog/AboutDialog.vue index 31d29e0f..a1a80c37 100644 --- a/src/components/dialog/AboutDialog.vue +++ b/src/components/dialog/AboutDialog.vue @@ -2,10 +2,17 @@ import { formatDateDifference } from '@/@core/utils/formatters' import api from '@/api' import { useI18n } from 'vue-i18n' +import { useDisplay } from 'vuetify' // 国际化 const { t } = useI18n() +// 定义事件 +const emit = defineEmits(['close']) + +// 显示器 +const display = useDisplay() + // 系统环境变量 const systemEnv = ref({}) @@ -116,233 +123,247 @@ onMounted(() => { diff --git a/src/layouts/components/ShortcutBar.vue b/src/layouts/components/ShortcutBar.vue index 736bfcea..7381a8ce 100644 --- a/src/layouts/components/ShortcutBar.vue +++ b/src/layouts/components/ShortcutBar.vue @@ -94,20 +94,6 @@ const shortcuts = [ dialog: 'netTest', dialogRef: netTestDialog, }, - { - title: t('shortcut.system.title'), - subtitle: t('shortcut.system.subtitle'), - icon: 'mdi-cog', - dialog: 'systemTest', - dialogRef: systemTestDialog, - }, - { - title: t('shortcut.message.title'), - subtitle: t('shortcut.message.subtitle'), - icon: 'mdi-message', - dialog: 'message', - dialogRef: messageDialog, - }, { title: t('shortcut.words.title'), subtitle: t('shortcut.words.subtitle'), @@ -122,6 +108,20 @@ const shortcuts = [ dialog: 'cache', dialogRef: cacheDialog, }, + { + title: t('shortcut.system.title'), + subtitle: t('shortcut.system.subtitle'), + icon: 'mdi-cog', + dialog: 'systemTest', + dialogRef: systemTestDialog, + }, + { + title: t('shortcut.message.title'), + subtitle: t('shortcut.message.subtitle'), + icon: 'mdi-message', + dialog: 'message', + dialogRef: messageDialog, + }, ] // 打开对话框 @@ -388,6 +388,38 @@ onMounted(() => { + + + + + + + {{ t('shortcut.words.subtitle') }} + + + + + + + + + + + + + + + + {{ t('shortcut.cache.subtitle') }} + + + + + + + + + { - - - - - - - {{ t('shortcut.words.subtitle') }} - - - - - - - - - - - - - - - - {{ t('shortcut.cache.subtitle') }} - - - - - - - - - diff --git a/src/layouts/components/UserProfile.vue b/src/layouts/components/UserProfile.vue index 6d3bcf54..233626d4 100644 --- a/src/layouts/components/UserProfile.vue +++ b/src/layouts/components/UserProfile.vue @@ -796,21 +796,7 @@ onUnmounted(() => { - - - - - - {{ t('setting.about.title') }} - - - - - - - - - + diff --git a/src/views/system/CacheView.vue b/src/views/system/CacheView.vue index e9bc2d38..442d1a3c 100644 --- a/src/views/system/CacheView.vue +++ b/src/views/system/CacheView.vue @@ -233,13 +233,37 @@ onMounted(() => {