From b86d12199ad042211bee5c5fdeece93ba4382046 Mon Sep 17 00:00:00 2001 From: louis <869322496@qq.com> Date: Sun, 7 Apr 2024 16:29:21 +0800 Subject: [PATCH] feat: upload file size limit change --- src/views/tool/storage/upload-modal.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/tool/storage/upload-modal.vue b/src/views/tool/storage/upload-modal.vue index 36469c1..ab61020 100644 --- a/src/views/tool/storage/upload-modal.vue +++ b/src/views/tool/storage/upload-modal.vue @@ -13,7 +13,7 @@ @cancel="onCancel" > - + 选择文件 @@ -88,8 +88,8 @@ }; const beforeUpload: UploadProps['beforeUpload'] = async (file) => { - if (file.size / 1024 / 1024 > 2) { - message.error('单个文件不超过2MB'); + if (file.size / 1024 / 1024 > 30) { + message.error('单个文件不超过30MB'); } else { const item: FileItem = { file,