Skip to content

Commit 0b12b79

Browse files
perf: About
1 parent 0a7f872 commit 0b12b79

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

frontend/src/components/about/index.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ import type { F2CLicense } from './index.ts'
66
import { licenseApi } from '@/api/license'
77
import { ElMessage } from 'element-plus-secondary'
88
import { useI18n } from 'vue-i18n'
9+
import { useUserStore } from '@/stores/user.ts'
910
const dialogVisible = ref(false)
1011
const { t } = useI18n()
11-
//const userStore = useUserStore()
12+
const userStore = useUserStore()
1213
const license: F2CLicense = reactive({
1314
status: '',
1415
corporation: '',
@@ -22,12 +23,12 @@ const license: F2CLicense = reactive({
2223
})
2324
const tipsSuffix = ref('')
2425
const build = ref('')
25-
const isAdmin = ref(true)
26+
const isAdmin = ref(false)
2627
const fileList = reactive([])
2728
const dynamicCardClass = ref('')
2829
const loading = ref(false)
2930
onMounted(() => {
30-
// isAdmin.value = userStore.getUid === '1'
31+
isAdmin.value = userStore.getUid === '1'
3132
initVersion()
3233
getLicenseInfo()
3334
})

0 commit comments

Comments
 (0)