Browse Source

重置密码校验规则和密码登陆规则统一

wanghao 4 months ago
parent
commit
156dd9160f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/manage/user/modules/user-resetpwd-dialog.vue

+ 2 - 2
src/views/manage/user/modules/user-resetpwd-dialog.vue

@@ -16,7 +16,7 @@ interface Props {
 const props = defineProps<Props>();
 const model = reactive(createDefaultModel());
 const { formRef, validate, resetFields } = useAntdForm();
-const { defaultRequiredRule } = useFormRules();
+const { formRules } = useFormRules();
 function createDefaultModel(){
   return {
     password: '',
@@ -24,7 +24,7 @@ function createDefaultModel(){
   };
 }
 const rules: Record<'password', App.Global.FormRule> = {
-  password: defaultRequiredRule,
+  password: formRules.pwd,
 };
 
 function closeDrawer() {