From 446c003b2eab620b77f0e3d3db092c50ac4b9519 Mon Sep 17 00:00:00 2001 From: vet Date: Mon, 13 Apr 2026 14:27:06 +0700 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E9=85=8D=E7=BD=AE=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 06-install-frontend.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/06-install-frontend.sh b/06-install-frontend.sh index e2323c2..d9d9444 100755 --- a/06-install-frontend.sh +++ b/06-install-frontend.sh @@ -78,14 +78,13 @@ case "$TARGET" in echo -e " ${CYAN}./deploy-test/07-start-frontend.sh${NC}" ;; pc|meetingh5|h5|cms|build-cms|build-down) - local PM case "$TARGET" in - pc) PM="yarn" ;; - cms|build-cms) PM="pnpm" ;; - *) PM="npm" ;; + pc) _PM="yarn" ;; + cms|build-cms) _PM="pnpm" ;; + *) _PM="npm" ;; esac step "安装 $TARGET 依赖" - _install "$TARGET" "$TARGET" "$PM" + _install "$TARGET" "$TARGET" "$_PM" ;; *) error "未知项目: $TARGET"