mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 20:16:44 +08:00
[FIX]【保全】退保-图片上传修改
This commit is contained in:
@@ -134,11 +134,15 @@ export default {
|
|||||||
message: '加载中……'
|
message: '加载中……'
|
||||||
})
|
})
|
||||||
let formdata = new FormData()
|
let formdata = new FormData()
|
||||||
formdata.append('imgPath', this.dataURLtoFile(file.content, file.file.name))
|
let imgName = Math.floor(Math.random() * 100).toString() + new Date().getTime() + file.file.name //为图片名加随机数 与时间戳
|
||||||
|
formdata.append('imgPath', this.dataURLtoFile(file.content, imgName))
|
||||||
uploadImg(formdata).then(res => {
|
uploadImg(formdata).then(res => {
|
||||||
this.$toast.clear()
|
this.$toast.clear()
|
||||||
if (res.result == '0') {
|
if (res.result == '0') {
|
||||||
this.uploadCheck.popList.push({ name: file.file.name, imgPath: res.path })
|
this.uploadCheck.popList.push({
|
||||||
|
name: file.file.name,
|
||||||
|
imgPath: res.path
|
||||||
|
})
|
||||||
console.log(this.fileList)
|
console.log(this.fileList)
|
||||||
} else {
|
} else {
|
||||||
this.$toast(res.resultMessage)
|
this.$toast(res.resultMessage)
|
||||||
|
|||||||
Reference in New Issue
Block a user