!2135 修复:历史编辑页码显示错误

pull/2134/MERGE
黄诗津 2 years ago committed by ChenX
parent 505d28fdd5
commit 1297d2f51c

@ -1237,7 +1237,8 @@ export class CommonPanel extends React.Component<ICommonPanelProps, ICommonPanel
let query: any; let query: any;
if (this.props.defaultDirId === DirectoryId.HistoryDit)//历史编辑记录 if (this.props.defaultDirId === DirectoryId.HistoryDit)//历史编辑记录
query = { query = {
page_count: "30", page_count: 30,
curr_page: 1,
name: "%", name: "%",
}; };
else else
@ -1257,6 +1258,7 @@ export class CommonPanel extends React.Component<ICommonPanelProps, ICommonPanel
} }
this.pageData.currentPage = query.curr_page; this.pageData.currentPage = query.curr_page;
this.pageData.pageCount = query.page_count;
if (query.name && query.dir_id === this.props.defaultDirId) if (query.name && query.dir_id === this.props.defaultDirId)
query.dir_id = DirectoryId.None; query.dir_id = DirectoryId.None;

Loading…
Cancel
Save