mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-09-20 20:02:05 +08:00
fix(promotion): 打开商品选择器前先初始化已选 SKU 列表
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user