fix(系统): 系统参数配置-文件大小限制不能为空

This commit is contained in:
baiqi 2024-09-19 15:48:01 +08:00 committed by 刘瑞斌
parent dfab85c92f
commit 6447cf04b7
1 changed files with 4 additions and 0 deletions

View File

@ -90,6 +90,7 @@
:max="1024" :max="1024"
:precision="0" :precision="0"
mode="button" mode="button"
model-event="input"
@blur="() => saveFileSizeLimitConfig()" @blur="() => saveFileSizeLimitConfig()"
/> />
</MsCard> </MsCard>
@ -545,6 +546,9 @@
async function saveFileSizeLimitConfig() { async function saveFileSizeLimitConfig() {
try { try {
fileSizeLimitLoading.value = true; fileSizeLimitLoading.value = true;
if (fileSizeLimit.value === undefined || fileSizeLimit.value === null || fileSizeLimit.value === 0) {
fileSizeLimit.value = 1024;
}
await saveUploadConfig([ await saveUploadConfig([
{ {
paramKey: 'upload.file.size', paramKey: 'upload.file.size',