优化生产环境多数据源报错

This commit is contained in:
geht
2026-06-16 18:41:35 +08:00
parent 97a1543e97
commit e28352f8ea
4 changed files with 26 additions and 2 deletions

View File

@@ -3,8 +3,10 @@ setlocal
set REPO=%~dp0
set WEBDIST=%REPO%web-dist
echo [1/4] build frontend (pnpm build) ...
echo [1/4] build frontend (pnpm install + build) ...
cd /d %REPO%jeecgboot-vue3
call pnpm install
if errorlevel 1 ( echo [ERROR] pnpm install failed & pause & exit /b 1 )
call pnpm run build
if errorlevel 1 ( echo [ERROR] frontend build failed & pause & exit /b 1 )
if not exist "%REPO%jeecgboot-vue3\dist\index.html" ( echo [ERROR] dist/index.html not found & pause & exit /b 1 )