Commit 07acbc94 authored by 陈明豪's avatar 陈明豪

bug修改

parent 1037bd72
......@@ -165,9 +165,9 @@ export default {
handleBeforeUpload(file) {
console.log('fileSize', file)
console.log('图片file---,', file.name)
const nameTest = /^[^%;]*$/
const nameTest = /^[^;/?:@&=+$,]*$/
if (!nameTest.test(file.name)) {
this.$modal.msgError('不能含有%;等特殊字符')
this.$modal.msgError('上传文件不能含有;/?:@&=+$,等特殊字符')
return false
}
// 校检文件大小
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment