diff --git a/main.js b/main.js index 115d22e..bf699e6 100644 --- a/main.js +++ b/main.js @@ -88,7 +88,7 @@ process.on('unhandledRejection', (reason, p) => { app.on('web-contents-created', (_, contents) => { contents.on('render-process-gone', (_event, details) => { console.error('⚠️ 渲染崩溃:', details); - if (['launch-failed', 'abnormal-exit'].includes(details.reason)) { + if (['launch-failed', 'abnorm al-exit'].includes(details.reason)) { const c = readCompat(); c.safeMode = true; writeCompat(c); console.warn('[Compat] set safeMode=true (persisted), will auto-use SAFE_MODE next launch'); } @@ -344,8 +344,8 @@ function createWindow() { // 自动判断环境使用不同的页面地址 const isProd = app.isPackaged; - // const targetURL = isProd ? 'https://iosaitest.yolozs.com' : 'http://192.168.1.128:8080'; - const targetURL = isProd ? 'https://iosai.yolozs.com' : 'http://192.168.1.128:8080'; + const targetURL = isProd ? 'https://iosaitest.yolozs.com' : 'http://192.168.1.128:8080'; + // const targetURL = isProd ? 'https://iosai.yolozs.com' : 'http://192.168.1.128:8080'; console.log('[页面加载] 使用地址:', targetURL); let retryIntervalId = null; diff --git a/package.json b/package.json index 970d0e2..33d7e1a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "YOLO-ios-ai", "productName": "YOLO(AI助手ios)", - "version": "2.7.1", + "version": "2.8.0", "description": "Vue3 + WS 控制台", "author": "yourname", "main": "main.js",