mirror of https://gitee.com/xiaonuobase/snowy
【修复】修复iss提出问题:系统设置,点击重置按钮报错
parent
6ce2afadf7
commit
ad0f7a8811
|
@ -15,7 +15,7 @@ module.exports = {
|
|||
tabWidth: 2,
|
||||
// 使用tab符缩进,false为空格缩进
|
||||
useTabs: true,
|
||||
// 行尾不需要分号
|
||||
// 行尾需要分号
|
||||
semi: false,
|
||||
// 使用单引号
|
||||
singleQuote: true,
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue