@@ -66,7 +66,7 @@ const menuOptions = computed<MenuOption[] | MenuGroupOption[]>(() => {
6666 key: " discover" ,
6767 link: " discover" ,
6868 label: " 发现音乐" ,
69- show: ! settingStore .hideDiscover ,
69+ show: ! settingStore .sidebarHide . hideDiscover ,
7070 icon: renderIcon (" Discover" , {
7171 style: {
7272 transform: " translateY(-1px)" ,
@@ -76,7 +76,7 @@ const menuOptions = computed<MenuOption[] | MenuGroupOption[]>(() => {
7676 {
7777 key: " personal-fm" ,
7878 label: " 私人漫游" ,
79- show: isLogin () !== 0 && ! settingStore .hidePersonalFM ,
79+ show: isLogin () !== 0 && ! settingStore .sidebarHide . hidePersonalFM ,
8080 icon: renderIcon (" Radio" , {
8181 style: {
8282 transform: " translateY(-1px)" ,
@@ -87,7 +87,7 @@ const menuOptions = computed<MenuOption[] | MenuGroupOption[]>(() => {
8787 key: " radio-hot" ,
8888 link: " radio-hot" ,
8989 label: " 播客电台" ,
90- show: ! settingStore .hideRadioHot ,
90+ show: ! settingStore .sidebarHide . hideRadioHot ,
9191 icon: renderIcon (" Record" , {
9292 style: {
9393 transform: " translateY(-1px)" ,
@@ -103,7 +103,7 @@ const menuOptions = computed<MenuOption[] | MenuGroupOption[]>(() => {
103103 label : () =>
104104 h (" div" , { class: " user-liked" }, [
105105 h (NText , null , () => " 我喜欢的音乐" ),
106- ! settingStore .hideHeartbeatMode
106+ ! settingStore .sidebarHide . hideHeartbeatMode
107107 ? h (NButton , {
108108 type: statusStore .shuffleMode === " heartbeat" ? " primary" : " default" ,
109109 round: true ,
@@ -123,14 +123,14 @@ const menuOptions = computed<MenuOption[] | MenuGroupOption[]>(() => {
123123 key: " like" ,
124124 link: " like" ,
125125 label: " 我的收藏" ,
126- show: ! settingStore .hideLike ,
126+ show: ! settingStore .sidebarHide . hideLike ,
127127 icon: renderIcon (" Star" ),
128128 },
129129 {
130130 key: " cloud" ,
131131 link: " cloud" ,
132132 label: " 我的云盘" ,
133- show: isLogin () === 1 && ! settingStore .hideCloud ,
133+ show: isLogin () === 1 && ! settingStore .sidebarHide . hideCloud ,
134134 icon: renderIcon (" Cloud" ),
135135 },
136136 {
@@ -145,21 +145,21 @@ const menuOptions = computed<MenuOption[] | MenuGroupOption[]>(() => {
145145 },
146146 () => " 下载管理" ,
147147 ),
148- show: statusStore .isDeveloperMode && isElectron && ! settingStore .hideDownload ,
148+ show: statusStore .isDeveloperMode && isElectron && ! settingStore .sidebarHide . hideDownload ,
149149 icon: renderIcon (" Download" ),
150150 },
151151 {
152152 key: " local" ,
153153 link: " local" ,
154154 label: " 本地歌曲" ,
155- show: isElectron && ! settingStore .hideLocal ,
155+ show: isElectron && ! settingStore .sidebarHide . hideLocal ,
156156 icon: renderIcon (" FolderMusic" ),
157157 },
158158 {
159159 key: " history" ,
160160 link: " history" ,
161161 label: " 最近播放" ,
162- show: ! settingStore .hideHistory ,
162+ show: ! settingStore .sidebarHide . hideHistory ,
163163 icon: renderIcon (" History" ),
164164 },
165165 {
@@ -169,7 +169,7 @@ const menuOptions = computed<MenuOption[] | MenuGroupOption[]>(() => {
169169 // 创建的歌单
170170 {
171171 key: " user-playlists" ,
172- show: ! settingStore .hideUserPlaylists ,
172+ show: ! settingStore .sidebarHide . hideUserPlaylists ,
173173 icon: statusStore .menuCollapsed ? renderIcon (" PlaylistAdd" ) : undefined ,
174174 label : () =>
175175 h (" div" , { class: " user-list" }, [
@@ -191,7 +191,7 @@ const menuOptions = computed<MenuOption[] | MenuGroupOption[]>(() => {
191191 // 收藏的歌单
192192 {
193193 key: " liked-playlists" ,
194- show: ! settingStore .hideLikedPlaylists ,
194+ show: ! settingStore .sidebarHide . hideLikedPlaylists ,
195195 icon: statusStore .menuCollapsed ? renderIcon (" PlaylistAddCheck" ) : undefined ,
196196 label : () =>
197197 h (
0 commit comments