From 05556e479a66293d56e7b3cf66370c6fe8731701 Mon Sep 17 00:00:00 2001 From: bjang03 <259278618@qq.com> Date: Thu, 19 Sep 2024 09:46:34 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=AF=86=E7=A0=81=E7=AD=96=E7=95=A5?= =?UTF-8?q?=E9=87=8D=E7=BD=AE=E4=BF=AE=E6=94=B9=E4=B8=BA=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/passwordRule/index.vue | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) 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()