feat: 添加右键添加到歌单 可以创建歌单 可以在我的歌单中右键取消收藏

This commit is contained in:
alger
2025-01-22 23:37:50 +08:00
parent a6ff0e7f5c
commit 25c2180247
7 changed files with 610 additions and 35 deletions
+7 -12
View File
@@ -44,19 +44,14 @@ request.interceptors.request.use(
// 在请求发送之前做一些处理
// 在get请求params中添加timestamp
if (config.method === 'get') {
config.params = {
...config.params,
timestamp: Date.now()
};
const token = localStorage.getItem('token');
if (token) {
config.params.cookie = `${token} os=pc;`;
} else {
config.params.cookie = 'os=pc;';
}
config.params = {
...config.params,
timestamp: Date.now()
};
const token = localStorage.getItem('token');
if (token) {
config.params.cookie = `${token} os=pc;`;
}
if (isElectron) {
const proxyConfig = setData?.proxyConfig;
if (proxyConfig?.enable && ['http', 'https'].includes(proxyConfig?.protocol)) {