fix: 修复社区版不显示头部图标问题
This commit is contained in:
parent
b9e4080d03
commit
7d1c19cfbe
@ -5,6 +5,7 @@ import { cloneDeep } from 'lodash'
|
|||||||
import UserApi from '@/api/user'
|
import UserApi from '@/api/user'
|
||||||
import ThemeApi from '@/api/theme'
|
import ThemeApi from '@/api/theme'
|
||||||
import { useElementPlusTheme } from 'use-element-plus-theme'
|
import { useElementPlusTheme } from 'use-element-plus-theme'
|
||||||
|
import { defaultPlatformSetting } from '@/utils/theme'
|
||||||
|
|
||||||
export interface userStateTypes {
|
export interface userStateTypes {
|
||||||
userType: number // 1 系统操作者 2 对话用户
|
userType: number // 1 系统操作者 2 对话用户
|
||||||
@ -90,6 +91,10 @@ const useUserStore = defineStore({
|
|||||||
|
|
||||||
if (this.isEnterprise()) {
|
if (this.isEnterprise()) {
|
||||||
await this.theme()
|
await this.theme()
|
||||||
|
} else {
|
||||||
|
this.themeInfo = {
|
||||||
|
...defaultPlatformSetting
|
||||||
|
}
|
||||||
}
|
}
|
||||||
resolve(ok)
|
resolve(ok)
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user