Merge branch 'qier222:master' into revincx-pr

This commit is contained in:
Lvc Revincx 2023-08-25 23:28:35 +08:00 committed by GitHub
commit 845bc8a921
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 246 additions and 75 deletions

View file

@ -67,7 +67,7 @@ const closeOnLinux = (e, win, store) => {
win.hide(); //调用 最小化实例方法
} else if (result.response === 1) {
win = null;
app.exit(); // exit()直接关闭客户端不会执行quit();
app.exit(); //exit()直接关闭客户端不会执行quit();
}
})
.catch(err => {
@ -154,7 +154,7 @@ class Background {
const expressApp = express();
expressApp.use('/', express.static(__dirname + '/'));
expressApp.use('/api', expressProxy('http://127.0.0.1:35216'));
expressApp.use('/api', expressProxy('http://127.0.0.1:10754'));
expressApp.use('/player', (req, res) => {
this.window.webContents
.executeJavaScript('window.yesplaymusic.player')
@ -167,7 +167,7 @@ class Background {
});
});
});
this.expressApp = expressApp.listen(41342, '127.0.0.1');
this.expressApp = expressApp.listen(27232, '127.0.0.1');
}
createWindow() {
@ -258,8 +258,8 @@ class Background {
createProtocol('app');
this.window.loadURL(
showLibraryDefault
? 'http://localhost:41342/#/library'
: 'http://localhost:41342'
? 'http://localhost:27232/#/library'
: 'http://localhost:27232'
);
}
}