修改配置

This commit is contained in:
vet
2026-04-13 22:48:49 +07:00
parent db787d6075
commit 07d0a5ded6
2 changed files with 46 additions and 4 deletions

View File

@@ -7,7 +7,7 @@
# ./07-start-frontend.sh <project> # 只启动指定项目
#
# 项目与端口:
# pc → Electron + Vite :7777
# pc → Electron + Vite :7777(无 GUI 时设 PC_WEB_ONLY=1 仅用浏览器 :5173
# meetingh5 → React + Vite :5188
# h5 → Vue + Vite :3003
# cms → UMI Max :8001
@@ -82,6 +82,12 @@ declare -A FE_PORT=(
[build-down]=":8003"
)
# 无 GUI / 缺 libatk 等:仅启动 Vite浏览器访问默认 :5173可用 VITE_WEB_PORT 覆盖)
if [[ "${PC_WEB_ONLY:-}" == "1" ]] || [[ "${PC_WEB_ONLY:-}" == "true" ]]; then
FE_CMD[pc]="yarn dev:web"
FE_PORT[pc]=":5173 (Vite 浏览器PC_WEB_ONLY)"
fi
# ── 启动单个前端服务 ──────────────────────────────────────────────────────────
_start_fe() {
local name="$1"