瀏覽代碼

no message

una 2 月之前
父節點
當前提交
b17e129ce4
共有 1 個文件被更改,包括 9 次插入1 次删除
  1. 9 1
      src/views/goods/edit.vue

+ 9 - 1
src/views/goods/edit.vue

@@ -2007,7 +2007,15 @@ export default {
         //   this.goods.keywords = null;
         // }
         // this.specifications = response.data.data.specifications;
-        this.products = response.data.data.products;
+        let products = response.data.data.products;
+        let list=[];
+        products.forEach(item=>{
+            let pItem=item;
+            pItem.timeRange=(item.timeRange==null?[]:item.timeRange.split(','));
+            list.push(pItem);
+
+        });
+        this.products=list;
         // if (this.products.length > 0) this.productForm = this.products[0];
 
         this.attributes = response.data.data.attributes;