Commit 78c25b9b by xinla

上传问题

1 parent d462cc50
...@@ -420,7 +420,7 @@ export default { ...@@ -420,7 +420,7 @@ export default {
tip = formatDefault[this.type].tip tip = formatDefault[this.type].tip
} }
const reg = new RegExp(`\\.(${this.format.join('|')})$`, 'ig') // /\.xlsx|.$/ const reg = new RegExp(`\\.(${format.join('|')})$`, 'ig') // /\.xlsx|.$/
isFormat = format[0] === '*' || reg.test(file.name) isFormat = format[0] === '*' || reg.test(file.name)
if (!isFormat) { if (!isFormat) {
this.$message.error('文件格式错误,仅支持 ' + (tip || format.join(',')) + ' 格式!') this.$message.error('文件格式错误,仅支持 ' + (tip || format.join(',')) + ' 格式!')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!