wangfei 6 年之前
父節點
當前提交
476a0e5aa9
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3
    2
      src/views/vote/signup.vue

+ 3
- 2
src/views/vote/signup.vue 查看文件

@@ -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(() => {