fix(@vben/playground): reset popup form state

This commit is contained in:
Dream
2026-08-05 10:24:28 +08:00
parent d0c8c887fd
commit 0a47dc8a3d
4 changed files with 9 additions and 4 deletions

View File

@@ -47,6 +47,8 @@ const [Drawer, drawerApi] = useVbenDrawer<FormDrawerData>({
const data = drawerApi.getData();
if (data?.values) {
formApi.setValues(data.values);
} else {
formApi.reset();
}
}
},