feat: 弱化下载功能 默认隐藏下载列表按钮 在设置中配置打开

This commit is contained in:
alger
2025-01-26 00:20:08 +08:00
parent c6ca63ee11
commit 1493ab7317
6 changed files with 54 additions and 12 deletions
+7 -2
View File
@@ -80,7 +80,7 @@ export interface State {
user: any;
playList: SongResult[];
playListIndex: number;
setData: any;
setData: typeof defaultSettings;
lyric: any;
isMobile: boolean;
searchValue: string;
@@ -93,6 +93,7 @@ export interface State {
showArtistDrawer: boolean;
currentArtistId: number | null;
systemFonts: { label: string; value: string }[];
showDownloadDrawer: boolean;
}
const state: State = {
@@ -116,7 +117,8 @@ const state: State = {
showUpdateModal: false,
showArtistDrawer: false,
currentArtistId: null,
systemFonts: [{ label: '系统默认', value: 'system-ui' }]
systemFonts: [{ label: '系统默认', value: 'system-ui' }],
showDownloadDrawer: false
};
const { handlePlayMusic, nextPlay, prevPlay } = useMusicListHook();
@@ -255,6 +257,9 @@ const mutations = {
value: font
}))
];
},
setShowDownloadDrawer(state: State, show: boolean) {
state.showDownloadDrawer = show;
}
};