fix(系统): 系统参数配置-文件大小限制不能为空
This commit is contained in:
parent
dfab85c92f
commit
6447cf04b7
|
@ -90,6 +90,7 @@
|
|||
:max="1024"
|
||||
:precision="0"
|
||||
mode="button"
|
||||
model-event="input"
|
||||
@blur="() => saveFileSizeLimitConfig()"
|
||||
/>
|
||||
</MsCard>
|
||||
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue