wangfei 6 gadus atpakaļ
vecāks
revīzija
476a0e5aa9
1 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. 3
    2
      src/views/vote/signup.vue

+ 3
- 2
src/views/vote/signup.vue Parādīt failu

@@ -128,8 +128,9 @@ export default {
128 128
           that.toolClass
129 129
             .upload(file)
130 130
             .then(res => {
131
-              that.uploadimg = res.result.url;
132
-              that.postData.photo = res.result.url;
131
+              const url = `${res.result.url}?x-oss-process=style/compress-rotate`
132
+              that.uploadimg = url;
133
+              that.postData.photo = url;
133 134
               // this.closetoast();
134 135
             })
135 136
             .catch(() => {