From 4327f99b01c80cea191ef6ed72a4a8aa6ca709a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=A3=8A?= <13466513767@163.com> Date: Tue, 14 Apr 2026 14:17:05 +0800 Subject: [PATCH] =?UTF-8?q?'=E4=BA=8C=E6=AC=A1=E5=AF=86=E7=A0=81=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Store/StoreAccountDialog.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Store/StoreAccountDialog.vue b/src/components/Store/StoreAccountDialog.vue index fe863f8..8847377 100644 --- a/src/components/Store/StoreAccountDialog.vue +++ b/src/components/Store/StoreAccountDialog.vue @@ -73,7 +73,8 @@ const formRules = computed(() => { confirm_password: [ { validator: (_rule: any, value: string, cb: any) => { - if (value && value !== form.password) cb(new Error('两次密码不一致')); + if (form.password && !value) cb(new Error('请确认密码')); + else if (value && value !== form.password) cb(new Error('两次密码不一致')); else cb(); }, },