diff --git a/src/views/system/passwordRule/index.vue b/src/views/system/passwordRule/index.vue index d91a69279..2a204081a 100644 --- a/src/views/system/passwordRule/index.vue +++ b/src/views/system/passwordRule/index.vue @@ -104,21 +104,24 @@ const rules = { password: [required], againPassword: [required] } -const reset = () => { - getConfig() -} -const passwordConfig = ref({ - status: true, +const defaultConfig = ref({ + status: false, ruleLevel: "简单", ruleDesc: "", - tryCount: 3, + tryCount: 5, lockHours: 1, - updatePeriod: 30, - dayTryCount: 3, + dayTryCount: 5, + updatePeriod: 100, updateRemind: 7, }) +const passwordConfig = ref({}) +const reset = () => { + passwordConfig.value = defaultConfig.value + changeRule("简单") +} /** 查询配置 */ const getConfig = async () => { + passwordConfig.value = defaultConfig.value loading.value = true try { passwordConfig.value = await api.getConfig()