mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 22:36:43 +08:00
修改照片相同名字问题
This commit is contained in:
@@ -599,9 +599,8 @@ export default {
|
|||||||
let that = this
|
let that = this
|
||||||
// console.log(type)
|
// console.log(type)
|
||||||
// 此时可以自行将文件上传至服务器
|
// 此时可以自行将文件上传至服务器
|
||||||
// console.log(file)
|
|
||||||
that.file = file.content
|
that.file = file.content
|
||||||
that.imgName = file.file.name
|
that.imgName = new Date().getTime() + file.file.name
|
||||||
that.uploadImg()
|
that.uploadImg()
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -631,6 +630,8 @@ export default {
|
|||||||
message: '加载中……'
|
message: '加载中……'
|
||||||
})
|
})
|
||||||
let formdata = new FormData()
|
let formdata = new FormData()
|
||||||
|
console.log('file-----------------', that.file)
|
||||||
|
console.log('name-----------------', that.imgName)
|
||||||
formdata.append('imgPath', that.dataURLtoFile(that.file, that.imgName))
|
formdata.append('imgPath', that.dataURLtoFile(that.file, that.imgName))
|
||||||
uploadImg(formdata).then(res => {
|
uploadImg(formdata).then(res => {
|
||||||
// console.log(res)
|
// console.log(res)
|
||||||
|
|||||||
Reference in New Issue
Block a user