perf[uploadExcel]: fix typo
This commit is contained in:
parent
775f6f5f3a
commit
59789d92cf
|
@ -22,13 +22,14 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
beforeUpload(file) {
|
beforeUpload(file) {
|
||||||
const isLt2M = file.size / 1024 / 1024 < 1
|
const isLt1M = file.size / 1024 / 1024 < 1
|
||||||
|
|
||||||
if (isLt2M) {
|
if (isLt1M) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$message({
|
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'
|
type: 'warning'
|
||||||
})
|
})
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in New Issue