|
|
|
|
@ -36,6 +36,7 @@ interface AppState {
|
|
|
|
|
footer: boolean
|
|
|
|
|
theme: ThemeTypes
|
|
|
|
|
fixedMenu: boolean
|
|
|
|
|
docsUrl: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const useAppStore = defineStore('app', {
|
|
|
|
|
@ -64,6 +65,7 @@ export const useAppStore = defineStore('app', {
|
|
|
|
|
footer: true, // 显示页脚
|
|
|
|
|
greyMode: false, // 是否开始灰色模式,用于特殊悼念日
|
|
|
|
|
fixedMenu: wsCache.get('fixedMenu') || false, // 是否固定菜单
|
|
|
|
|
docsUrl: "http://47.106.185.127:8088/", //操作手册地址
|
|
|
|
|
|
|
|
|
|
layout: wsCache.get(CACHE_KEY.LAYOUT) || 'classic', // layout布局
|
|
|
|
|
isDark: wsCache.get(CACHE_KEY.IS_DARK) || false, // 是否是暗黑模式
|
|
|
|
|
@ -155,6 +157,9 @@ export const useAppStore = defineStore('app', {
|
|
|
|
|
getTitle(): string {
|
|
|
|
|
return this.title
|
|
|
|
|
},
|
|
|
|
|
getDocsUrl(): string {
|
|
|
|
|
return this.docsUrl
|
|
|
|
|
},
|
|
|
|
|
getUserInfo(): string {
|
|
|
|
|
return this.userInfo
|
|
|
|
|
},
|
|
|
|
|
|