refactor(front): 优化组件功能和消息提示
- 修改部门树组件的值类型 - 优化文件上传组件的大小计算和消息提示 - 统一使用 CsMessage 组件进行消息提示 - 调整控制台日志输出级别
This commit is contained in:
@@ -166,7 +166,7 @@ export default {
|
||||
},
|
||||
beforeUpload(file) {
|
||||
let isLt2M = true
|
||||
isLt2M = file.size / 1024 / 1024 < 100
|
||||
isLt2M = file.size / 1024 ** 2 < 100
|
||||
if (!isLt2M) {
|
||||
this.loading = false
|
||||
this.$message.error('上传文件大小不能超过 100MB')
|
||||
|
||||
Reference in New Issue
Block a user