diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3571744..22ac53f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,4 +5,9 @@
### ✨ 新功能
- 添加下载管理 进度显示 播放下载的音乐
- 添加缓存管理 清理缓存
-- 优化下载格式问题 支持下载其他格式 ps:其实之前只是后缀名问题
\ No newline at end of file
+- 优化下载格式问题 支持下载其他格式 ps:其实之前只是后缀名问题
+
+## 咖啡☕️
+| 微信 | | 支付宝 |
+| :--------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------: |
+|
| |
|
\ No newline at end of file
diff --git a/src/main/index.ts b/src/main/index.ts
index 815024f..33e5b36 100644
--- a/src/main/index.ts
+++ b/src/main/index.ts
@@ -60,7 +60,7 @@ app.whenReady().then(() => {
initialize();
// macOS 激活应用时的处理
- app.on('activate', function () {
+ app.on('activate', () => {
if (mainWindow === null) initialize();
});
});
diff --git a/src/renderer/api/artist.ts b/src/renderer/api/artist.ts
new file mode 100644
index 0000000..3b9db85
--- /dev/null
+++ b/src/renderer/api/artist.ts
@@ -0,0 +1,21 @@
+import request from '@/utils/request';
+
+// 获取歌手详情
+export const getArtistDetail = (id) => {
+ return request.get('/artist/detail', { params: { id } });
+};
+
+// 获取歌手热门歌曲
+export const getArtistTopSongs = (params) => {
+ return request.get('/artist/songs', {
+ params: {
+ ...params,
+ order: 'hot'
+ }
+ });
+};
+
+// 获取歌手专辑
+export const getArtistAlbums = (params) => {
+ return request.get('/artist/album', { params });
+};
diff --git a/src/renderer/components.d.ts b/src/renderer/components.d.ts
index e0b2b1b..da30727 100644
--- a/src/renderer/components.d.ts
+++ b/src/renderer/components.d.ts
@@ -15,6 +15,7 @@ declare module 'vue' {
NCheckbox: typeof import('naive-ui')['NCheckbox']
NCheckboxGroup: typeof import('naive-ui')['NCheckboxGroup']
NConfigProvider: typeof import('naive-ui')['NConfigProvider']
+ NDataTable: typeof import('naive-ui')['NDataTable']
NDialogProvider: typeof import('naive-ui')['NDialogProvider']
NDrawer: typeof import('naive-ui')['NDrawer']
NDrawerContent: typeof import('naive-ui')['NDrawerContent']
@@ -29,6 +30,7 @@ declare module 'vue' {
NLayout: typeof import('naive-ui')['NLayout']
NMessageProvider: typeof import('naive-ui')['NMessageProvider']
NModal: typeof import('naive-ui')['NModal']
+ NPagination: typeof import('naive-ui')['NPagination']
NPopover: typeof import('naive-ui')['NPopover']
NProgress: typeof import('naive-ui')['NProgress']
NScrollbar: typeof import('naive-ui')['NScrollbar']
diff --git a/src/renderer/components/MusicList.vue b/src/renderer/components/MusicList.vue
index 631bc50..cfe978c 100644
--- a/src/renderer/components/MusicList.vue
+++ b/src/renderer/components/MusicList.vue
@@ -7,6 +7,7 @@
mask-closable
:style="{ backgroundColor: 'transparent' }"
:to="`#layout-main`"
+ :z-index="9998"
@mask-click="close"
>
- {{ item.desc }}