1
This commit is contained in:
@@ -144,7 +144,6 @@ function migrateDataFromPublic(): void {
|
||||
}
|
||||
|
||||
function startSpringBoot() {
|
||||
// 首先迁移数据(如果需要)
|
||||
migrateDataFromPublic();
|
||||
|
||||
const jarPath = getJarFilePath();
|
||||
@@ -214,7 +213,7 @@ function startSpringBoot() {
|
||||
}
|
||||
}
|
||||
|
||||
startSpringBoot();
|
||||
//startSpringBoot();
|
||||
|
||||
function stopSpringBoot() {
|
||||
if (!springProcess) return;
|
||||
@@ -267,7 +266,6 @@ function createWindow() {
|
||||
setTimeout(() => checkPendingUpdate(), 500);
|
||||
});
|
||||
|
||||
// 不立即加载页面,等 SpringBoot 启动完成后再加载
|
||||
}
|
||||
|
||||
app.whenReady().then(() => {
|
||||
@@ -300,6 +298,10 @@ app.whenReady().then(() => {
|
||||
splashWindow.loadFile(splashPath);
|
||||
}
|
||||
|
||||
//11111
|
||||
setTimeout(() => {
|
||||
openAppIfNotOpened();
|
||||
}, 2000);
|
||||
|
||||
app.on('activate', () => {
|
||||
if (BrowserWindow.getAllWindows().length === 0) {
|
||||
|
||||
Reference in New Issue
Block a user