fix: 修复

dev_unify
chenhc 8 months ago
parent 6752f96d4f
commit 461c1bf3c7

@ -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 格式!');
} }

@ -680,7 +680,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 格式!');
} }

Loading…
Cancel
Save