fix: 表格的表单搜索无法在modal/drawer中使用 https://gitee.com/dapppp/ruoyi-plus-vben5/issues/IB0960

This commit is contained in:
dap
2024-11-14 14:51:29 +08:00
parent a814bed79e
commit 36c6a65d22
5 changed files with 12 additions and 42 deletions

View File

@@ -37,7 +37,9 @@ const formOptions: VbenFormProps = {
// eslint-disable-next-line no-use-before-define
const { formApi, reload } = tableApi;
await formApi.resetForm();
await reload();
const formValues = formApi.form.values;
formApi.setLatestSubmissionValues(formValues);
await reload(formValues);
},
};