Lazy init admin form adapter

This commit is contained in:
2026-06-10 14:37:32 +08:00
parent 4280f43850
commit bb6ff80998
+3 -2
View File
@@ -43,9 +43,10 @@ function initSetupVbenForm() {
initialized = true;
}
const useVbenForm = ((...args: Parameters<typeof useForm<ComponentType>>) => {
initSetupVbenForm();
const useVbenForm = useForm<ComponentType>;
return useForm<ComponentType>(...args);
}) as typeof useForm<ComponentType>;
export { initSetupVbenForm, useVbenForm, z };