diff --git a/components.d.ts b/components.d.ts index 9e4637d9..df98d7ee 100644 --- a/components.d.ts +++ b/components.d.ts @@ -23,8 +23,8 @@ declare module 'vue' { KeyboardSetting: typeof import('./src/components/Setting/KeyboardSetting.vue')['default'] LocalSetting: typeof import('./src/components/Setting/LocalSetting.vue')['default'] Login: typeof import('./src/components/Modal/Login.vue')['default'] - LoginPhone: typeof import('./src/components/Modal/loginPhone.vue')['default'] - LoginQRCode: typeof import('./src/components/Modal/loginQRCode.vue')['default'] + LoginPhone: typeof import('./src/components/Modal/LoginPhone.vue')['default'] + LoginQRCode: typeof import('./src/components/Modal/LoginQRCode.vue')['default'] LyricsSetting: typeof import('./src/components/Setting/LyricsSetting.vue')['default'] MainAMLyric: typeof import('./src/components/Player/MainAMLyric.vue')['default'] MainLyric: typeof import('./src/components/Player/MainLyric.vue')['default'] diff --git a/electron/main/index.ts b/electron/main/index.ts index 86d6b8ca..6564918e 100644 --- a/electron/main/index.ts +++ b/electron/main/index.ts @@ -1,7 +1,7 @@ import { app, shell, BrowserWindow, BrowserWindowConstructorOptions } from "electron"; import { electronApp, optimizer } from "@electron-toolkit/utils"; import { join } from "path"; -import { release } from "os"; +import { release, type } from "os"; import { isDev, isMac, appName } from "./utils"; import { registerAllShortcuts, unregisterShortcuts } from "./shortcut"; import { initTray, MainTray } from "./tray"; @@ -38,7 +38,7 @@ class MainProcess { constructor() { log.info("πŸš€ Main process startup"); // 禁用 Windows 7 ηš„ GPU εŠ ι€ŸεŠŸθƒ½ - if (release().startsWith("6.1")) app.disableHardwareAcceleration(); + if (release().startsWith("6.1") && type() == 'Windows_NT') app.disableHardwareAcceleration(); // 单例锁 if (!app.requestSingleInstanceLock()) { log.error("❌ There is already a program running and this process is terminated");