|
|
@ -363,7 +363,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
beforeUpload(file) {
|
|
|
|
beforeUpload(file) {
|
|
|
|
const isXML = file.name.endsWith('.txt');
|
|
|
|
const isXML = file.name.endsWith('.txt');
|
|
|
|
const isLt5M = file.size / 1024 / 1024 < 10;
|
|
|
|
const isLt5M = file.size / 1024 / 1024 < 100;
|
|
|
|
if (!isXML) {
|
|
|
|
if (!isXML) {
|
|
|
|
this.$message.error('上传文件只能是 TXT 格式!');
|
|
|
|
this.$message.error('上传文件只能是 TXT 格式!');
|
|
|
|
}
|
|
|
|
}
|
|
|
|