fix: resolve quoting issue in start_all.bat frontend launch, add node_modules check

This commit is contained in:
2026-05-23 09:11:53 +08:00
parent 93ad5e8876
commit 751df5c4a9
+9 -1
View File
@@ -32,7 +32,15 @@ echo :8000 就绪
:: 3. 前端
echo [3/3] 前端 :5173
start "jrxml-frontend" /MIN cmd /c "cd /d "%~dp0frontend" && npm run dev"
if not exist "%~dp0frontend\node_modules" (
echo [安装] node_modules 不存在,正在 npm install...
cd /d "%~dp0frontend"
call npm install
cd /d "%~dp0"
)
cd /d "%~dp0frontend"
start "jrxml-frontend" /MIN cmd /c "npm run dev"
cd /d "%~dp0"
:wait_fe
ping -n 3 127.0.0.1 >nul
powershell -Command "try{$r=Invoke-WebRequest -Uri http://localhost:5173 -TimeoutSec 3 -UseBasicParsing;exit 0}catch{exit 1}" >nul 2>&1