diff --git a/snowy-admin-web/prettier.config.js b/snowy-admin-web/prettier.config.js index ab63fda6..f63eed5a 100644 --- a/snowy-admin-web/prettier.config.js +++ b/snowy-admin-web/prettier.config.js @@ -15,7 +15,7 @@ module.exports = { tabWidth: 2, // 使用tab符缩进,false为空格缩进 useTabs: true, - // 行尾不需要分号 + // 行尾需要分号 semi: false, // 使用单引号 singleQuote: true, diff --git a/snowy-admin-web/src/views/dev/config/sysConfig.vue b/snowy-admin-web/src/views/dev/config/sysConfig.vue index 5bae343d..bd419cd5 100644 --- a/snowy-admin-web/src/views/dev/config/sysConfig.vue +++ b/snowy-admin-web/src/views/dev/config/sysConfig.vue @@ -88,7 +88,7 @@ 保存 - 重置 + 重置 @@ -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' + } + }