From f7e1cad639f498f457a45aaea779d82478a4fb25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=A1=E5=A4=8D=E4=B9=A0?= <2353956224@qq.com> Date: Thu, 6 Nov 2025 21:10:00 +0800 Subject: [PATCH] =?UTF-8?q?2.8.0=E7=A8=B3=E5=AE=9A=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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",