fix:static page pagination
This commit is contained in:
parent
d22ec72066
commit
e064a7a431
|
|
@ -114,12 +114,12 @@ export default function StaticPageBuilderEdit() {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
const title = watch("title");
|
// const title = watch("title");
|
||||||
useEffect(() => {
|
// useEffect(() => {
|
||||||
if (getValues("title")) {
|
// if (getValues("title")) {
|
||||||
setValue("slug", createSlug(getValues("title")));
|
// setValue("slug", createSlug(getValues("title")));
|
||||||
}
|
// }
|
||||||
}, [title]);
|
// }, [title]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<form
|
<form
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ export default function StaticPageTable() {
|
||||||
async function initState() {
|
async function initState() {
|
||||||
const req = {
|
const req = {
|
||||||
limit: showData,
|
limit: showData,
|
||||||
page: page - 1,
|
page: page,
|
||||||
search: search,
|
search: search,
|
||||||
};
|
};
|
||||||
const res = await getCustomStaticPage(req);
|
const res = await getCustomStaticPage(req);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue