@@ -9,7 +9,7 @@ export const useGlobalConfig = defineStore('global', {
|
|||||||
globalConfig: {
|
globalConfig: {
|
||||||
rowCount: 17,
|
rowCount: 17,
|
||||||
isSHowPrizeList: true,
|
isSHowPrizeList: true,
|
||||||
isShowAvatar: true,
|
isShowAvatar: false,
|
||||||
topTitle: i18n.global.t('data.defaultTitle'),
|
topTitle: i18n.global.t('data.defaultTitle'),
|
||||||
language: browserLanguage,
|
language: browserLanguage,
|
||||||
theme: {
|
theme: {
|
||||||
@@ -108,8 +108,8 @@ export const useGlobalConfig = defineStore('global', {
|
|||||||
},
|
},
|
||||||
// 获取是否显示头像
|
// 获取是否显示头像
|
||||||
getIsShowAvatar(state) {
|
getIsShowAvatar(state) {
|
||||||
return state.globalConfig.isShowAvatar;
|
return state.globalConfig.isShowAvatar
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
// 设置rowCount
|
// 设置rowCount
|
||||||
@@ -187,7 +187,7 @@ export const useGlobalConfig = defineStore('global', {
|
|||||||
},
|
},
|
||||||
// 重置音乐列表
|
// 重置音乐列表
|
||||||
resetMusicList() {
|
resetMusicList() {
|
||||||
this.globalConfig.musicList =JSON.parse(JSON.stringify(defaultMusicList)) as IMusic[]
|
this.globalConfig.musicList = JSON.parse(JSON.stringify(defaultMusicList)) as IMusic[]
|
||||||
},
|
},
|
||||||
// 清空音乐列表
|
// 清空音乐列表
|
||||||
clearMusicList() {
|
clearMusicList() {
|
||||||
@@ -234,7 +234,7 @@ export const useGlobalConfig = defineStore('global', {
|
|||||||
},
|
},
|
||||||
// 设置是否显示头像
|
// 设置是否显示头像
|
||||||
setIsShowAvatar(isShowAvatar: boolean) {
|
setIsShowAvatar(isShowAvatar: boolean) {
|
||||||
this.globalConfig.isShowAvatar = isShowAvatar;
|
this.globalConfig.isShowAvatar = isShowAvatar
|
||||||
},
|
},
|
||||||
// 重置所有配置
|
// 重置所有配置
|
||||||
reset() {
|
reset() {
|
||||||
|
|||||||
Reference in New Issue
Block a user