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