Merge pull request #71 from LOG1997/dev

feat: 设置头像默认为不显示
This commit is contained in:
LOG1997
2025-04-16 17:15:56 +08:00
committed by GitHub

View File

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