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