From 0b12b797c549e0c4983f7cf4500b360312a8a56f Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Mon, 4 Aug 2025 19:33:20 +0800 Subject: [PATCH] perf: About --- frontend/src/components/about/index.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/about/index.vue b/frontend/src/components/about/index.vue index ee72bee4..2c258d60 100644 --- a/frontend/src/components/about/index.vue +++ b/frontend/src/components/about/index.vue @@ -6,9 +6,10 @@ import type { F2CLicense } from './index.ts' import { licenseApi } from '@/api/license' import { ElMessage } from 'element-plus-secondary' import { useI18n } from 'vue-i18n' +import { useUserStore } from '@/stores/user.ts' const dialogVisible = ref(false) const { t } = useI18n() -//const userStore = useUserStore() +const userStore = useUserStore() const license: F2CLicense = reactive({ status: '', corporation: '', @@ -22,12 +23,12 @@ const license: F2CLicense = reactive({ }) const tipsSuffix = ref('') const build = ref('') -const isAdmin = ref(true) +const isAdmin = ref(false) const fileList = reactive([]) const dynamicCardClass = ref('') const loading = ref(false) onMounted(() => { - // isAdmin.value = userStore.getUid === '1' + isAdmin.value = userStore.getUid === '1' initVersion() getLicenseInfo() })