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