Skip to content

Commit

Permalink
fix: 修复 search initalForm初始化失效的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
greper committed Jun 16, 2023
1 parent 93870a5 commit 0da1be9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/fast-crud/src/components/search/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ export default defineComponent({
function onFormValidated() {
validateForm.value = _.cloneDeep(form);
}
onFormValidated();
const { doComputed, AsyncComputeValue } = useCompute();
_.each(props.columns, (item) => {
Expand Down
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 @@ -357,7 +357,7 @@ export function useExpose(props: UseExposeProps): UseExposeRet {
const { currentPage = page[ui.pagination.currentPage], pageSize = page.pageSize, total } = pageRes;
const { records } = pageRes;
if (records == null || total == null) {
logger.warn(
logger.error(
"pageRequest返回结构不正确,请配置正确的request.transformRes,期望:{currentPage, pageSize, total, records:[]},实际返回:",
pageRes
);
Expand Down

0 comments on commit 0da1be9

Please sign in to comment.