|
@@ -636,7 +636,7 @@ export default {
|
|
/.*(zip|xlsx|text|csv|xls|mov|mp4|m4a|avi|amr|mp3|wav|3gpp|gif|jpeg|png|jpg)/i
|
|
/.*(zip|xlsx|text|csv|xls|mov|mp4|m4a|avi|amr|mp3|wav|3gpp|gif|jpeg|png|jpg)/i
|
|
)
|
|
)
|
|
const isUpload = file.type.match(reg)
|
|
const isUpload = file.type.match(reg)
|
|
- if (!isUpload) {
|
|
|
|
|
|
+ if (isUpload === false) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '不支持上传此文件格式',
|
|
message: '不支持上传此文件格式',
|
|
type: 'warning'
|
|
type: 'warning'
|