|
@@ -6,7 +6,6 @@ import fs from 'fs';
|
|
import axios from 'axios';
|
|
import axios from 'axios';
|
|
import ProcessManager from './processManager.js'
|
|
import ProcessManager from './processManager.js'
|
|
|
|
|
|
-
|
|
|
|
const processManager = new ProcessManager(); // 创建进程管理器实例
|
|
const processManager = new ProcessManager(); // 创建进程管理器实例
|
|
const __filename = fileURLToPath(import.meta.url);
|
|
const __filename = fileURLToPath(import.meta.url);
|
|
const __dirname = path.dirname(__filename);
|
|
const __dirname = path.dirname(__filename);
|
|
@@ -26,7 +25,7 @@ function createWindow() {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
|
|
- // win.webContents.openDevTools(); // 打开开发者工具进行调试
|
|
|
|
|
|
+ win.webContents.openDevTools(); // 打开开发者工具进行调试
|
|
win.loadURL('http://localhost:5173'); // 开发环境
|
|
win.loadURL('http://localhost:5173'); // 开发环境
|
|
// win.loadURL('http://36.110.106.156:81'); // 生产环境
|
|
// win.loadURL('http://36.110.106.156:81'); // 生产环境
|
|
console.log('Window created and URL loaded');
|
|
console.log('Window created and URL loaded');
|