【修复】修复iss提出问题:系统设置,点击重置按钮报错

pull/87/head
小诺 2023-03-01 23:51:31 +08:00 committed by 俞宝山
parent 6ce2afadf7
commit ad0f7a8811
2 changed files with 11 additions and 2 deletions

View File

@ -15,7 +15,7 @@ module.exports = {
tabWidth: 2,
// 使用tab符缩进false为空格缩进
useTabs: true,
// 行尾需要分号
// 行尾需要分号
semi: false,
// 使用单引号
singleQuote: true,

View File

@ -88,7 +88,7 @@
<a-col :span="24">
<a-form-item>
<a-button type="primary" :loading="submitLoading" @click="onSubmit()"></a-button>
<a-button style="margin-left: 10px" @click="() => formRef.resetFields()">重置</a-button>
<a-button style="margin-left: 10px" @click="resetForm"></a-button>
</a-form-item>
</a-col>
</a-row>
@ -210,6 +210,7 @@
}
})
console.log(JSON.stringify(param))
//
const shortcut = {
shortcut: menuTreeSelectRef.value.getSelectData()
@ -227,4 +228,12 @@
})
.catch(() => {})
}
//
const resetForm = () => {
imageUrl.value = ''
formData.value = {
SNOWY_SYS_DEFAULT_CAPTCHA_OPEN: 'true',
SNOWY_SYS_DEFAULT_FILE_ENGINE: 'LOCAL'
}
}
</script>