This commit is contained in:
parent
e05b492bcf
commit
a1da75b05a
|
|
@ -207,8 +207,8 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 判断文件名称是否过长
|
// 判断文件名称是否过长
|
||||||
if (file.name.length > 30) {
|
if (file.name.length > 40) {
|
||||||
this.$modal.msgError('文件名称不能超过30个字符')
|
this.$modal.msgError('文件名称不能超过40个字符')
|
||||||
this.$emit(
|
this.$emit(
|
||||||
'update:fileList',
|
'update:fileList',
|
||||||
fileList.filter((item) => item.uid !== file.uid),
|
fileList.filter((item) => item.uid !== file.uid),
|
||||||
|
|
|
||||||
|
|
@ -219,8 +219,8 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 判断文件名称是否过长
|
// 判断文件名称是否过长
|
||||||
if (file.name.length > 30) {
|
if (file.name.length > 40) {
|
||||||
this.$modal.msgError('文件名称不能超过30个字符')
|
this.$modal.msgError('文件名称不能超过40个字符')
|
||||||
this.$emit(
|
this.$emit(
|
||||||
'update:fileList',
|
'update:fileList',
|
||||||
fileList.filter((item) => item.uid !== file.uid),
|
fileList.filter((item) => item.uid !== file.uid),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue