Browse Source

no message

una 4 months ago
parent
commit
cd5d63a9c8
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/views/goods/create.vue

+ 4 - 2
src/views/goods/create.vue

@@ -1964,7 +1964,8 @@ export default {
       //     }
       //   ];
       // } else {
-      this.products.forEach(pro => {
+             let proList=JSON.parse(JSON.stringify(this.products));
+      proList.forEach(pro => {
         var proItem = pro;
         proItem.productType = this.goods.productType;
         proItem.timeRange = pro.timeRange.join(",");
@@ -2045,7 +2046,8 @@ export default {
       //     }
       //   ];
       // } else {
-      this.products.forEach(pro => {
+    let proList=JSON.parse(JSON.stringify(this.products));
+       proList.forEach(pro => {
         var proItem = pro;
         proItem.productType = this.goods.productType;
         proItem.timeRange = pro.timeRange.join(",");