From 4a8a4eddca7403d6404c0f94715cee742bb35809 Mon Sep 17 00:00:00 2001 From: zzh <1368735060@qq.com> Date: Wed, 7 Oct 2026 19:21:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8D=96=E4=BB=B7=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E5=90=8E=E5=BC=BA=E5=88=B6=E5=88=B7=E6=96=B0=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E6=80=81=EF=BC=8C=E9=81=BF=E5=85=8D=E5=BE=BD=E7=AB=A0=E5=8D=A1?= =?UTF-8?q?=E5=9C=A8=E5=BE=85=E5=8F=91=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- src/views/channel/salesProducts/index.vue | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/views/channel/salesProducts/index.vue b/src/views/channel/salesProducts/index.vue index 870ab76..0547ff8 100644 --- a/src/views/channel/salesProducts/index.vue +++ b/src/views/channel/salesProducts/index.vue @@ -1224,14 +1224,12 @@ priceTableData.value = rows; priceTabLoadedProductId = productId; void refreshSalesProductPriceEffectiveInfo(productId); - const sig = `${productId}|${rows - .map((r) => `${r.id}:${r.modifyTime}:${r.status ? 1 : 0}`) - .join(',')}`; - if (sig === pricePublishCheckedSig) return; - // 立刻拉预览/线上快照(网络与表格并行);重 CPU 对比在请求返回后 yield 再跑 + // 发布同步态必须每次刷新:不能跟价格行 modifyTime 签名绑死,否则刚发布后签名不变会跳过刷新、徽章一直「待发布」 void refreshPricePublishSyncStatus(productId).then(() => { if (seq === priceTabLoadSeq && selectedProduct.value === productId) { - pricePublishCheckedSig = sig; + pricePublishCheckedSig = `${productId}|${rows + .map((r) => `${r.id}:${r.modifyTime}:${r.status ? 1 : 0}`) + .join(',')}`; } }); } catch (e) { @@ -2274,7 +2272,10 @@ publishModalMethods.closeModal(); await loadRecordsTabData(pid, true); if (operatorType === 'price') { + pricePublishCheckedSig = ''; + pricePublishPending.value = false; await loadPriceTabData(pid); + await refreshPricePublishSyncStatus(pid); } } catch (e: any) { Message.error(e?.message || t('channel.salesProducts.publish.fail'));