增加随机数

This commit is contained in:
shishengjie
2019-10-16 11:07:46 +08:00
parent 65dfb6151b
commit a1db2a1170

View File

@@ -600,7 +600,7 @@ export default {
// console.log(type)
// 此时可以自行将文件上传至服务器
that.file = file.content
that.imgName = new Date().getTime() + file.file.name
that.imgName = Math.floor(Math.random() * 100).toString() + new Date().getTime() + file.file.name //为图片名加随机数 与时间戳
that.uploadImg()
},