Skip to content

Commit

Permalink
fix(console): clear pod name query not reset pagesize (#983)
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-hnny committed Dec 7, 2020
1 parent a35f015 commit bd11ad4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions web/console/src/modules/cluster/actions/resourcePodActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,10 @@ const restActions = {
});

if (podFilter.podName) {
// 清除分页信息
// 有podname,后台会启用模糊查询,导致只能查到原本当前页的内容
dispatch(resourceDetailActions.pod.changePaging({ pageIndex: 1, pageSize: 2048 }));
} else {
// 清除分页信息
dispatch(resourceDetailActions.pod.resetPaging());
dispatch(resourceDetailActions.pod.changePaging({ pageIndex: 1, pageSize: 20 }));
}

// 根据筛选项,进行pod列表的查询,namespace、metadata.name等过滤条件
Expand Down

0 comments on commit bd11ad4

Please sign in to comment.