Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 59789d9

Browse files
committed
perf[uploadExcel]: fix typo
1 parent 775f6f5 commit 59789d9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/views/excel/uploadExcel.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@ export default {
2222
},
2323
methods: {
2424
beforeUpload(file) {
25-
const isLt2M = file.size / 1024 / 1024 < 1
25+
const isLt1M = file.size / 1024 / 1024 < 1
2626
27-
if (isLt2M) {
27+
if (isLt1M) {
2828
return true
2929
}
30+
3031
this.$message({
31-
message: 'Please do not upload files larger than 2m in size.',
32+
message: 'Please do not upload files larger than 1m in size.',
3233
type: 'warning'
3334
})
3435
return false

0 commit comments

Comments
 (0)