From 4dac1ae4ab3ceae2b024266e24657f7047139bd7 Mon Sep 17 00:00:00 2001 From: hfshfg <38004547@qq.com> Date: Wed, 1 Apr 2026 09:48:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20code=20review=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E4=B8=A4=E5=A4=84=20bug=20=E5=B9=B6=E4=BC=98=E5=8C=96=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - fix(setup.bat): 修复 Node.js 解压路径错误 xcopy 来源从 %TEMP%\node-v22-win-x64\* 改为 %TEMP%\node-extract\node-v22-win-x64\*, 否则解压后 xcopy 找不到文件,Node.js 安装必然失败 - fix(Config.html): 点击「启动 OpenClaw」后 toast 改为 「配置已保存!请关闭此页面,回到启动窗口使用 U-Claw」, 避免用户误以为点击后会自动启动而一直等待 (portable / usb-release / u-claw-app 三个版本同步) Co-Authored-By: Claude Sonnet 4.6 --- portable/Config.html | 2 +- portable/setup.bat | 2 +- u-claw-app/resources/Config.html | 2 +- usb-release/Config.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/portable/Config.html b/portable/Config.html index 3619b80..ebd872d 100644 --- a/portable/Config.html +++ b/portable/Config.html @@ -613,7 +613,7 @@ async function launchOpenClaw() { } // 3. Launch - showToast('正在启动 OpenClaw...'); + showToast('配置已保存!请关闭此页面,回到启动窗口使用 U-Claw'); try { await fetch('/api/done', { method: 'POST' }); } catch(e) {} } diff --git a/portable/setup.bat b/portable/setup.bat index f417db3..5dd74aa 100644 --- a/portable/setup.bat +++ b/portable/setup.bat @@ -46,7 +46,7 @@ if !errorlevel! neq 0 ( echo 解压中... mkdir "%NODE_DIR%" 2>nul powershell -command "Expand-Archive -Path '%TEMP%\%NODE_ZIP%' -DestinationPath '%TEMP%\node-extract' -Force" -xcopy /s /e /q /y "%TEMP%\node-%NODE_VER%-win-x64\*" "%NODE_DIR%\" >nul +xcopy /s /e /q /y "%TEMP%\node-extract\node-%NODE_VER%-win-x64\*" "%NODE_DIR%\" >nul rmdir /s /q "%TEMP%\node-extract" 2>nul del "%TEMP%\%NODE_ZIP%" 2>nul diff --git a/u-claw-app/resources/Config.html b/u-claw-app/resources/Config.html index 3619b80..ebd872d 100644 --- a/u-claw-app/resources/Config.html +++ b/u-claw-app/resources/Config.html @@ -613,7 +613,7 @@ async function launchOpenClaw() { } // 3. Launch - showToast('正在启动 OpenClaw...'); + showToast('配置已保存!请关闭此页面,回到启动窗口使用 U-Claw'); try { await fetch('/api/done', { method: 'POST' }); } catch(e) {} } diff --git a/usb-release/Config.html b/usb-release/Config.html index 3619b80..ebd872d 100644 --- a/usb-release/Config.html +++ b/usb-release/Config.html @@ -613,7 +613,7 @@ async function launchOpenClaw() { } // 3. Launch - showToast('正在启动 OpenClaw...'); + showToast('配置已保存!请关闭此页面,回到启动窗口使用 U-Claw'); try { await fetch('/api/done', { method: 'POST' }); } catch(e) {} }