Commit 1c5e8a57 by zhangquan

上传图片接口添加不压缩参数

1 parent 9a552f16
......@@ -165,7 +165,7 @@ export default {
const imgFile = event.target.result
const arrBase64 = imgFile.split(',')
const base64 = file.name.split('.').pop() + '@' + arrBase64[1]
this.$apis.discover.uploadImgApi({file: base64, fileType: 'image'}).then(res => {
this.$apis.discover.uploadImgApi({file: base64, fileType: 'image', compress: 1}).then(res => {
this.formObj[this.attr] = res
this.$emit('uploadSuccess', {attr : this.attr, url: res})
this.$refs.fileRef.value = ''
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!