|
@@ -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() {
|