fix: 修复错误

This commit is contained in:
wangdan-fit2cloud 2024-07-18 18:20:54 +08:00
parent d7612043b9
commit 8f7baf994c
2 changed files with 4 additions and 1 deletions

View File

@ -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()
}

View File

@ -134,7 +134,9 @@ const login = () => {
}
onMounted(() => {
user.theme()
if (user.isEnterprise()) {
user.theme()
}
user.asyncGetProfile().then((res) => {
if (user.isXPack) {
loading.value = true