File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
frontend/src/components/about Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,10 @@ import type { F2CLicense } from './index.ts'
66import { licenseApi } from ' @/api/license'
77import { ElMessage } from ' element-plus-secondary'
88import { useI18n } from ' vue-i18n'
9+ import { useUserStore } from ' @/stores/user.ts'
910const dialogVisible = ref (false )
1011const { t } = useI18n ()
11- // const userStore = useUserStore()
12+ const userStore = useUserStore ()
1213const license: F2CLicense = reactive ({
1314 status: ' ' ,
1415 corporation: ' ' ,
@@ -22,12 +23,12 @@ const license: F2CLicense = reactive({
2223})
2324const tipsSuffix = ref (' ' )
2425const build = ref (' ' )
25- const isAdmin = ref (true )
26+ const isAdmin = ref (false )
2627const fileList = reactive ([])
2728const dynamicCardClass = ref (' ' )
2829const loading = ref (false )
2930onMounted (() => {
30- // isAdmin.value = userStore.getUid === '1'
31+ isAdmin .value = userStore .getUid === ' 1'
3132 initVersion ()
3233 getLicenseInfo ()
3334})
You can’t perform that action at this time.
0 commit comments