Browse Source

bug: fix upload image error

zjxpcyc 6 years ago
parent
commit
0fbc58725d
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      src/views/vote/signup.vue

+ 3
- 3
src/views/vote/signup.vue View File

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