From 8d0496cd2d0d7afd00ba740296cf433642131449 Mon Sep 17 00:00:00 2001 From: bjang03 <259278618@qq.com> Date: Thu, 19 Sep 2024 10:07:22 +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=E8=A1=A8=E5=8D=95?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/passwordRule/index.vue | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/views/system/passwordRule/index.vue b/src/views/system/passwordRule/index.vue index 2a204081a..353879cba 100644 --- a/src/views/system/passwordRule/index.vue +++ b/src/views/system/passwordRule/index.vue @@ -104,24 +104,21 @@ const rules = { password: [required], againPassword: [required] } -const defaultConfig = ref({ - status: false, +const reset = () => { + getConfig() +} +const passwordConfig = ref({ + status: true, ruleLevel: "简单", ruleDesc: "", - tryCount: 5, + tryCount: 3, lockHours: 1, + updatePeriod: 180, 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()