From a37cfebc24c3b1a1a05c7486315d007c9b27bf2d Mon Sep 17 00:00:00 2001 From: "ex_zhangwenlei@exiot.cmcc" <15196725410@139.com> Date: Wed, 16 Apr 2025 17:14:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=AE=BE=E7=BD=AE=E5=A4=B4=E5=83=8F?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E4=B8=BA=E4=B8=8D=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/globalConfig.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/store/globalConfig.ts b/src/store/globalConfig.ts index a483522..0fc7a22 100644 --- a/src/store/globalConfig.ts +++ b/src/store/globalConfig.ts @@ -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() {