Skip to content

Commit

Permalink
fix: 修复未mounted之前立即search报错的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
greper committed Jan 11, 2024
1 parent 5ed008b commit 51bd7c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fast-crud/src/use/use-expose.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ export function useExpose(props: UseExposeProps): UseExposeRet {

let searchFormData = pageQuery.form;
if (searchFormData == null) {
searchFormData = _.cloneDeep(crudExpose.getSearchValidatedFormData());
searchFormData = _.cloneDeep(crudExpose.getSearchValidatedFormData()) || {};
//配置searchValueResolve
if (crudBinding.value?.search?.columns) {
crudExpose.doValueResolve({ form: searchFormData }, toRaw(crudBinding.value.search.columns));
Expand Down

0 comments on commit 51bd7c6

Please sign in to comment.