Browse Source

修改bug.

zhangfufeng 1 tuần trước cách đây
mục cha
commit
767e3716f9
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/views/goods/edit.vue

+ 2 - 2
src/views/goods/edit.vue

@@ -2098,8 +2098,8 @@ export default {
       }
       if (!this.goodsValidate()) return;
       let products = [];
-
-      this.products.forEach(pro => {
+      const productList = JSON.parse(JSON.stringify(this.products));
+      productList.forEach(pro => {
         var proItem = pro;
         //proItem.productType=this.goods.productType;
         // if (