Browse Source

图片显示优化

shish 3 years ago
parent
commit
21b9c3feea
1 changed files with 3 additions and 3 deletions
  1. 3 3
      ghsApp/src/admin/item/detail.vue

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

@@ -370,7 +370,7 @@ export default {
           this.form[i] = res.data[i];
         });
 
-        this.currentImgData.push(res.data.cover)
+        this.currentImgData.push(res.data.bigCover)
         this.form.cover = [res.data.shortCover]
 
         this.form.stock = 0
@@ -399,7 +399,7 @@ export default {
             this.form[i] = res.data[i]
         });
 
-        this.currentImgData.push(res.data.cover)
+        this.currentImgData.push(res.data.bigCover)
 
         this.form.cover = [res.data.shortCover]
 
@@ -421,7 +421,7 @@ export default {
     imgUploadSuccess(res) {
       var _res = JSON.parse(res.data)
       if(_res.code == 1){
-        this.currentImgData.push(_res.data.smallUrl)
+        this.currentImgData.push(_res.data.bigUrl)
         this.form.cover.push(_res.data.shortUrl)
       }
     },