From 1d3f1ad9b368d1e15391e26d16497b8940cb5c74 Mon Sep 17 00:00:00 2001
From: Jacob <hlnie@tohours.com>
Date: 星期二, 13 十月 2026 14:37:55 +0800
Subject: [PATCH] fix: 商品售罄判断统一抽离为 computed 并完善空值处理

---
 scripts/publish.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/publish.js b/scripts/publish.js
index bc9bf3e..ddb06f8 100644
--- a/scripts/publish.js
+++ b/scripts/publish.js
@@ -262,8 +262,8 @@
 		: '鐢� manifest.json.demo 鐢熸垚锛坅ppid ' + env.APPID + '锛岀敓鎴愮墿涓嶅叆搴擄級'));
 
 	const cliArgs = ['publish', '--platform', 'mp-weixin', '--project', ROOT].concat(passthrough);
-	// 璺緞鍚┖鏍�/涓枃锛屼氦缁� cmd 瑙f瀽鏇寸ǔ
-	const openCmd = '"' + wx.file + '" open --project "' + DIST_DIR + '"';
+	// 璺緞鍚┖鏍�/涓枃锛屼氦缁� cmd 瑙f瀽鏇寸ǔ锛�--no-open 鏃舵病鏈夊井淇″紑鍙戣�呭伐鍏凤紝涓嶆嫾杩欐潯鍛戒护锛�
+	const openCmd = wx ? '"' + wx.file + '" open --project "' + DIST_DIR + '"' : '';
 
 	if (dryRun) {
 		console.log('[release] 0) 鐢熸垚: manifest.json 鈫� manifest.json.demo' + (noGen ? '锛堝凡鎸囧畾 --no-gen锛岃烦杩囷級' : ''));

--
Gitblit v1.4.0