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