perf(projects): perf page manage_role, useTable

This commit is contained in:
Soybean
2024-01-28 01:35:01 +08:00
parent 0e9e2e1dc0
commit 39aa7aa2de
4 changed files with 13 additions and 5 deletions

View File

@ -36,7 +36,7 @@ const visible = defineModel<boolean>('visible', {
default: false
});
const { formRef, validate } = useNaiveForm();
const { formRef, validate, restoreValidation } = useNaiveForm();
const { defaultRequiredRule } = useFormRules();
const title = computed(() => {
@ -94,6 +94,7 @@ async function handleSubmit() {
watch(visible, () => {
if (visible.value) {
handleUpdateModelWhenEdit();
restoreValidation();
}
});
</script>