mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-05-17 10:27:30 +08:00
✨ feat: 弱化下载功能 默认隐藏下载列表按钮 在设置中配置打开
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user