diff --git a/auto-eslint.mjs b/auto-eslint.mjs index a9714ef..f3fad90 100644 --- a/auto-eslint.mjs +++ b/auto-eslint.mjs @@ -59,7 +59,6 @@ export default { "isRef": true, "isShallow": true, "makeDestructurable": true, - "manualResetRef": true, "markRaw": true, "nextTick": true, "onActivated": true, @@ -97,11 +96,11 @@ export default { "refAutoReset": true, "refDebounced": true, "refDefault": true, - "refManualReset": true, "refThrottled": true, "refWithControl": true, "resolveComponent": true, "resolveRef": true, + "resolveUnref": true, "shallowReactive": true, "shallowReadonly": true, "shallowRef": true, diff --git a/electron/main/ipc/ipc-lyric.ts b/electron/main/ipc/ipc-lyric.ts index 40d16b7..1776db8 100644 --- a/electron/main/ipc/ipc-lyric.ts +++ b/electron/main/ipc/ipc-lyric.ts @@ -82,7 +82,7 @@ const initLyricIpc = (): void => { // 音乐名称更改 ipcMain.on("play-song-change", (_, title) => { - if (!title || !isWinAlive(lyricWin)) return; + if (!isWinAlive(lyricWin)) return; lyricWin.webContents.send("update-desktop-lyric-data", { playName: title }); }); diff --git a/electron/main/ipc/ipc-tray.ts b/electron/main/ipc/ipc-tray.ts index dcad051..b870c03 100644 --- a/electron/main/ipc/ipc-tray.ts +++ b/electron/main/ipc/ipc-tray.ts @@ -1,6 +1,7 @@ import { ipcMain } from "electron"; import { getMainTray } from "../tray"; import lyricWindow from "../windows/lyric-window"; +import { appName } from "../utils/config"; /** * 托盘 IPC @@ -18,7 +19,7 @@ const initTrayIpc = (): void => { // 音乐名称更改 ipcMain.on("play-song-change", (_, title) => { - if (!title) return; + if (!title) title = appName; // 更改标题 tray?.setTitle(title); tray?.setPlayName(title); diff --git a/src/components/Card/SongCard.vue b/src/components/Card/SongCard.vue index f81b92c..40a233e 100644 --- a/src/components/Card/SongCard.vue +++ b/src/components/Card/SongCard.vue @@ -44,7 +44,6 @@ import type { DropdownOption } from "naive-ui"; -import type { SongType, SortType } from "@/types/main"; +import { SongType, SortType } from "@/types/main"; import { useMusicStore, useStatusStore } from "@/stores"; import { VirtList } from "vue-virt-list"; import { entries, isEmpty } from "lodash-es"; diff --git a/src/components/Player/MainPlayList.vue b/src/components/Player/MainPlayList.vue index d19b23f..06d04d4 100644 --- a/src/components/Player/MainPlayList.vue +++ b/src/components/Player/MainPlayList.vue @@ -81,13 +81,7 @@