Browse Source

fix bug: 修复添花材时,采用的,图片没显示

shizhongqi 10 tháng trước cách đây
mục cha
commit
237291a28c
2 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 2 1
      ghsApp/src/admin/item/detail.vue
  2. 1 0
      hdApp/src/admin/item/detail.vue

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

@@ -1052,7 +1052,8 @@ export default {
         });
 
         this.currentImgData.push(res.data.bigCover)
-        this.form.cover = [res.data.shortCover]
+        this.form.images = [res.data.shortCover]
+        this.form.cover = res.data.shortCover // 覆盖原来的cover,并要使用短链接图片
 
         this.form.stock = 0
         this.form.itemId = ptItemId

+ 1 - 0
hdApp/src/admin/item/detail.vue

@@ -1072,6 +1072,7 @@ export default {
 
         this.currentImgData.push(res.data.bigCover)
         this.form.images = [res.data.shortCover]
+        this.form.cover = res.data.shortCover // 覆盖原来的cover,并要使用短链接图片
 
         this.form.stock = 0
         this.form.itemId = ptItemId