refactor(front): 优化组件功能和消息提示

- 修改部门树组件的值类型
- 优化文件上传组件的大小计算和消息提示
- 统一使用 CsMessage 组件进行消息提示
- 调整控制台日志输出级别
This commit is contained in:
2025-07-27 11:58:44 +08:00
parent 14460b1c9a
commit b6c93031c6
17 changed files with 60 additions and 48 deletions
@@ -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')