Sfoglia il codice sorgente

图片缩略图显示修改

hwb0 3 anni fa
parent
commit
49170b77be

+ 1 - 1
src/components/DragImageUpload/index.vue

@@ -180,7 +180,7 @@ export default {
           var pitem = {
             name: item.fileName,
             url:  (this.isPublic ? publicFileGetUrl : (this.baseUrl + privateFileGetUrl)) + item.fileName,
-            thumbUrl:  (this.isPublic ? publicFileGetUrl : (this.baseUrl + privateFileGetUrl)) + item.fileName + "_s"
+            thumbUrl:  (this.isPublic ? publicFileGetUrl : (this.baseUrl + privateFileGetUrl)) + item.fileName + "?imageView2/2/w/375"
           };
           this.previewList.push(pitem)
           return item;

+ 1 - 1
src/components/ImageShow/index.vue

@@ -111,7 +111,7 @@
             var pitem = {
               name: item.fileName,
               url:  (this.isPublic ? publicFileGetUrl : (this.baseUrl + privateFileGetUrl)) + item.fileName,
-              thumbUrl: (this.isPublic ? publicFileGetUrl : (this.baseUrl + privateFileGetUrl)) + item.fileName + "_s",
+              thumbUrl: (this.isPublic ? publicFileGetUrl : (this.baseUrl + privateFileGetUrl)) + item.fileName + "?imageView2/2/w/375",
             };
             this.previewList.push(pitem)
             return item;

+ 1 - 1
src/components/ImageUpload/index.vue

@@ -158,7 +158,7 @@
             var pitem = {
               name: item.fileName,
               url:  (this.isPublic ? publicFileGetUrl : (this.baseUrl + privateFileGetUrl)) + item.fileName,
-              thumbUrl:  (this.isPublic ? publicFileGetUrl : (this.baseUrl + privateFileGetUrl)) + item.fileName + "_s"
+              thumbUrl:  (this.isPublic ? publicFileGetUrl : (this.baseUrl + privateFileGetUrl)) + item.fileName + "?imageView2/2/w/375"
             };
             this.previewList.push(pitem)
             return item;