From 05b14ada18669cc636b3ca05689aeb2af1e4d8fd Mon Sep 17 00:00:00 2001 From: "pikachu1995@126.com" Date: Tue, 11 Aug 2026 15:35:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(promotion):=20=E6=89=93=E5=BC=80=E5=95=86?= =?UTF-8?q?=E5=93=81=E9=80=89=E6=8B=A9=E5=99=A8=E5=89=8D=E5=85=88=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96=E5=B7=B2=E9=80=89=20SKU=20=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- .../views/promotion/full-discount/full-discount-add.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/seller/src/views/promotion/full-discount/full-discount-add.vue b/seller/src/views/promotion/full-discount/full-discount-add.vue index 81a94943..1abf6c5e 100644 --- a/seller/src/views/promotion/full-discount/full-discount-add.vue +++ b/seller/src/views/promotion/full-discount/full-discount-add.vue @@ -331,12 +331,13 @@ export default { this.$router.back(); }, openSkuList() { - this.$refs.liliDialog.open("goods"); - const data = JSON.parse(JSON.stringify(this.form.promotionGoodsList)); + const data = JSON.parse(JSON.stringify(this.form.promotionGoodsList || [])); data.forEach((e) => { - e.id = e.skuId; + e.id = e.skuId || e.id; }); + // 先写入已选商品,再打开选择器,保证回显时 selectedWay 已就绪 this.$refs.liliDialog.goodsData = data; + this.$refs.liliDialog.open("goods"); }, getDetail() { getFullDiscountById(this.id).then((res) => {