From 6447cf04b70307fb18b019ae87546cb7c533f325 Mon Sep 17 00:00:00 2001 From: baiqi Date: Thu, 19 Sep 2024 15:48:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F):=20=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E9=85=8D=E7=BD=AE-=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=A4=A7=E5=B0=8F=E9=99=90=E5=88=B6=E4=B8=8D=E8=83=BD=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/setting/system/config/components/baseConfig.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/views/setting/system/config/components/baseConfig.vue b/frontend/src/views/setting/system/config/components/baseConfig.vue index b1a8d085b7..03b596e24a 100644 --- a/frontend/src/views/setting/system/config/components/baseConfig.vue +++ b/frontend/src/views/setting/system/config/components/baseConfig.vue @@ -90,6 +90,7 @@ :max="1024" :precision="0" mode="button" + model-event="input" @blur="() => saveFileSizeLimitConfig()" /> @@ -545,6 +546,9 @@ async function saveFileSizeLimitConfig() { try { fileSizeLimitLoading.value = true; + if (fileSizeLimit.value === undefined || fileSizeLimit.value === null || fileSizeLimit.value === 0) { + fileSizeLimit.value = 1024; + } await saveUploadConfig([ { paramKey: 'upload.file.size',