fix: 避免日计划弹窗关闭后重建
This commit is contained in:
@@ -18,7 +18,7 @@ const ORDER_NOT_STARTED = 0;
|
||||
|
||||
const [FormModal, formModalApi] = useVbenModal({
|
||||
connectedComponent: Form,
|
||||
destroyOnClose: true,
|
||||
destroyOnClose: false,
|
||||
});
|
||||
const [DetailDrawer, detailDrawerApi] = useVbenDrawer({
|
||||
connectedComponent: Detail,
|
||||
|
||||
@@ -67,6 +67,10 @@ const [Form, formApi] = useVbenForm({
|
||||
});
|
||||
|
||||
const [Modal, modalApi] = useVbenModal({
|
||||
destroyOnClose: false,
|
||||
onCancel() {
|
||||
void modalApi.close();
|
||||
},
|
||||
async onConfirm() {
|
||||
const { valid } = await formApi.validate();
|
||||
if (!valid) return;
|
||||
|
||||
Reference in New Issue
Block a user