From bfcd3b3b2228f8e5608be88e9a762b5a6bad07e8 Mon Sep 17 00:00:00 2001
From: Jacob <hlnie@tohours.com>
Date: 星期二, 20 十月 2026 12:47:58 +0800
Subject: [PATCH] fix: 专区倒计时改为数字拆分渲染并增加 token 防止多条定时器并发导致跳动
---
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