diff --git a/src/views/setting/AccountSettingAbout.vue b/src/components/dialog/AboutDialog.vue similarity index 98% rename from src/views/setting/AccountSettingAbout.vue rename to src/components/dialog/AboutDialog.vue index a17150a0..31d29e0f 100644 --- a/src/views/setting/AccountSettingAbout.vue +++ b/src/components/dialog/AboutDialog.vue @@ -118,10 +118,7 @@ onMounted(() => { diff --git a/src/layouts/components/UserProfile.vue b/src/layouts/components/UserProfile.vue index a226e93b..6d3bcf54 100644 --- a/src/layouts/components/UserProfile.vue +++ b/src/layouts/components/UserProfile.vue @@ -5,6 +5,7 @@ import avatar1 from '@images/avatars/avatar-1.png' import api from '@/api' import ProgressDialog from '@/components/dialog/ProgressDialog.vue' import UserAuthDialog from '@/components/dialog/UserAuthDialog.vue' +import AboutDialog from '@/components/dialog/AboutDialog.vue' import { useAuthStore, useUserStore, useGlobalSettingsStore } from '@/stores' import { useI18n } from 'vue-i18n' import { useDisplay, useTheme } from 'vuetify' @@ -55,6 +56,9 @@ const transparencyLevel = ref(localStorage.getItem('transparency-level') || 'med const isTransparentTheme = computed(() => currentThemeName.value === 'transparent') const showTransparencyDialog = ref(false) +// 关于对话框 +const aboutDialog = ref(false) + // 预设值配置 const transparencyPresets = { low: { opacity: 0.1, blur: 5 }, @@ -207,6 +211,11 @@ function showSiteAuthDialog() { siteAuthDialog.value = true } +// 显示关于对话框 +function showAboutDialog() { + aboutDialog.value = true +} + // 用户站点认证成功 function siteAuthDone() { siteAuthDialog.value = false @@ -633,6 +642,14 @@ onUnmounted(() => { {{ t('user.helpDocs') }} + + + + {{ t('setting.about.title') }} + + @@ -777,6 +794,23 @@ onUnmounted(() => { + + + + + + + + {{ t('setting.about.title') }} + + + + + + + + +