Skip to content

Commit bd11ad4

Browse files
authored
fix(console): clear pod name query not reset pagesize (#983)
1 parent a35f015 commit bd11ad4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

web/console/src/modules/cluster/actions/resourcePodActions.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,11 +224,10 @@ const restActions = {
224224
});
225225

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

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

0 commit comments

Comments
 (0)