fix: 修复桌面歌词不透明显示标题栏的问题

This commit is contained in:
alger
2025-10-11 20:23:15 +08:00
parent c83ad48ef4
commit dc8957dcf2
4 changed files with 2 additions and 26 deletions

View File

@@ -72,7 +72,7 @@
"autoprefixer": "^10.4.20",
"axios": "^1.7.7",
"cross-env": "^7.0.3",
"electron": "^37.4.0",
"electron": "^38.1.2",
"electron-builder": "^26.0.12",
"electron-vite": "^4.0.0",
"eslint": "^9.34.0",

View File

@@ -218,9 +218,6 @@ export const loadLyricWindow = (ipcMain: IpcMain, mainWin: BrowserWindow): void
// 记录原始窗口大小
const [width, height] = lyricWindow.getSize();
originalSize = { width, height };
// 在拖动时暂时禁用大小调整
lyricWindow.setResizable(false);
}
});
@@ -230,9 +227,6 @@ export const loadLyricWindow = (ipcMain: IpcMain, mainWin: BrowserWindow): void
if (lyricWindow && !lyricWindow.isDestroyed()) {
// 确保窗口大小恢复原样
lyricWindow.setSize(originalSize.width, originalSize.height);
// 拖动结束后恢复可调整大小
lyricWindow.setResizable(true);
}
});

View File

@@ -117,7 +117,7 @@ import { createPlaylist, updatePlaylistTracks } from '@/api/music';
import { getUserPlaylist } from '@/api/user';
import { useUserStore } from '@/store';
import { getImgUrl } from '@/utils';
import { hasPermission, getLoginErrorMessage } from '@/utils/auth';
import { getLoginErrorMessage, hasPermission } from '@/utils/auth';
const store = useUserStore();
const { t } = useI18n();

View File

@@ -1,18 +0,0 @@
/**
* 快捷键配置
*/
export interface ShortcutConfig {
/** 快捷键字符串 */
key: string;
/** 是否启用 */
enabled: boolean;
/** 作用范围: global(全局) 或 app(仅应用内) */
scope: 'global' | 'app';
}
/**
* 快捷键配置集合
*/
export interface ShortcutsConfig {
[key: string]: ShortcutConfig;
}