BUG 25531

This commit is contained in:
aixianling
2021-12-17 09:45:01 +08:00
parent a12843b902
commit 60c246b958

View File

@@ -121,11 +121,9 @@ export default {
uni.showLoading({title: '上传中'})
let formData = new FormData()
formData.append('file', img)
this.$http
.post(this.action, formData, {
this.$http.post(this.action, formData, {
params: {type: this.type},
})
.then((res) => {
}).then((res) => {
uni.hideLoading()
if (res?.data) {
this.$emit('data', res.data)
@@ -144,8 +142,10 @@ export default {
} else {
this.$u.toast(res.msg)
}
}).catch(err => {
this.$u.toast(err)
uni.hideLoading()
})
.catch(() => uni.hideLoading())
},
handleReUpload(i) {
this.upload(() => this.remove(i))