fix: 修复错误
This commit is contained in:
parent
4f7e02f8fb
commit
6fd55d752f
@ -82,6 +82,7 @@ const useUserStore = defineStore({
|
||||
this.version = ok.data?.version || '-'
|
||||
this.isXPack = ok.data?.IS_XPACK
|
||||
this.XPACK_LICENSE_IS_VALID = ok.data?.XPACK_LICENSE_IS_VALID
|
||||
|
||||
if (this.isEnterprise()) {
|
||||
await this.theme()
|
||||
}
|
||||
|
||||
@ -134,7 +134,9 @@ const login = () => {
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
user.theme()
|
||||
if (user.isEnterprise()) {
|
||||
user.theme()
|
||||
}
|
||||
user.asyncGetProfile().then((res) => {
|
||||
if (user.isXPack) {
|
||||
loading.value = true
|
||||
|
||||
Loading…
Reference in New Issue
Block a user