同步代码

This commit is contained in:
zengqiao
2022-08-23 19:01:53 +08:00
parent e90c5003ae
commit e1514c901b
76 changed files with 796 additions and 577 deletions

View File

@@ -30,11 +30,11 @@ const ChangeLog = () => {
total: 0,
});
const getChangeLog = () => {
const getChangeLog = (pageSize = 10) => {
const promise = Utils.request(API.getClusterChangeLog(+clusterId), {
params: {
pageNo: pagination.pageNo + 1,
pageSize: 10,
pageSize,
},
});
promise.then((res: any) => {
@@ -45,7 +45,7 @@ const ChangeLog = () => {
};
React.useEffect(() => {
getChangeLog().then(
getChangeLog(20).then(
() => setLoading(false),
() => setLoading(false)
);