Skip to content
Snippets Groups Projects
Commit 59789d92 authored by Pan's avatar Pan
Browse files

perf[uploadExcel]: fix typo

parent 775f6f5f
No related branches found
No related tags found
No related merge requests found
......@@ -22,13 +22,14 @@ export default {
},
methods: {
beforeUpload(file) {
const isLt2M = file.size / 1024 / 1024 < 1
const isLt1M = file.size / 1024 / 1024 < 1
if (isLt2M) {
if (isLt1M) {
return true
}
this.$message({
message: 'Please do not upload files larger than 2m in size.',
message: 'Please do not upload files larger than 1m in size.',
type: 'warning'
})
return false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment