fix(系统): 系统参数配置-文件大小限制不能为空
This commit is contained in:
parent
dfab85c92f
commit
6447cf04b7
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue