From 6f705d9bb6fb1d832a055952db36aef43f03dbf1 Mon Sep 17 00:00:00 2001 From: dhb52 Date: Tue, 11 Jun 2024 14:20:38 +0800 Subject: [PATCH] =?UTF-8?q?fix(sj=5F1.0.0):=20=E6=97=A7=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E6=97=A0=E9=9C=80=E4=BD=BF=E7=94=A8=E5=AF=86=E7=A0=81=E8=A7=84?= =?UTF-8?q?=E5=88=99=E6=A0=A1=E9=AA=8C,=E9=9D=9E=E7=A9=BA=E5=8D=B3?= =?UTF-8?q?=E5=8F=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/global-header/components/change-password.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layouts/modules/global-header/components/change-password.vue b/src/layouts/modules/global-header/components/change-password.vue index a1e9013..a173538 100644 --- a/src/layouts/modules/global-header/components/change-password.vue +++ b/src/layouts/modules/global-header/components/change-password.vue @@ -34,10 +34,10 @@ const { formRef, validate } = useNaiveForm(); type RuleRecord = Partial>; const rules = computed(() => { - const { formRules, createConfirmPwdRule } = useFormRules(); + const { formRules, createConfirmPwdRule, defaultRequiredRule } = useFormRules(); return { - oldPassword: formRules.pwd, + oldPassword: [defaultRequiredRule], newPassword: formRules.pwd, checkPassword: createConfirmPwdRule(model.newPassword!) };