shish 3 lat temu
rodzic
commit
136f1f78ce
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      ghsApp/src/admin/item/detail.vue

+ 3 - 1
ghsApp/src/admin/item/detail.vue

@@ -373,7 +373,7 @@ export default {
         this.currentImgData.push(res.data.cover)
         this.currentImgData.push(res.data.cover)
         this.form.cover = [res.data.shortCover]
         this.form.cover = [res.data.shortCover]
 
 
-        this.form.stock = ''
+        this.form.stock = 0
         this.form.itemId = ptItemId
         this.form.itemId = ptItemId
         this.form.classId = ''
         this.form.classId = ''
         this.form.status = 1
         this.form.status = 1
@@ -384,6 +384,8 @@ export default {
         this.form.addPrice = 3
         this.form.addPrice = 3
         this.form.discountPrice = 0
         this.form.discountPrice = 0
         this.form.skMore = 3
         this.form.skMore = 3
+        this.form.smallShow = 0
+        this.form.smallRatio = 1
         this.cost = res.data && res.data.cost ? parseFloat(res.data.cost) : 0
         this.cost = res.data && res.data.cost ? parseFloat(res.data.cost) : 0
       })
       })
     },
     },