mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-28 10:57:23 +08:00
🐞 fix: 修复歌词界面无法打开问题
This commit is contained in:
+3
-1
@@ -1,4 +1,5 @@
|
||||
const { BrowserWindow } = require('electron');
|
||||
const path = require('path');
|
||||
|
||||
let lyricWindow = null;
|
||||
|
||||
@@ -21,7 +22,8 @@ const loadLyricWindow = (ipcMain) => {
|
||||
lyricWindow.webContents.openDevTools({ mode: 'detach' });
|
||||
lyricWindow.loadURL('http://localhost:4678/#/lyric');
|
||||
} else {
|
||||
lyricWindow.loadURL(`file://${__dirname}/dist/index.html/#/lyric`);
|
||||
const distPath = path.resolve(__dirname, '../dist');
|
||||
lyricWindow.loadURL(`file://${distPath}/index.html#/lyric`);
|
||||
}
|
||||
|
||||
lyricWindow.show();
|
||||
|
||||
Reference in New Issue
Block a user