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");
|
||||
useEffect(() => {
|
||||
if (getValues("title")) {
|
||||
setValue("slug", createSlug(getValues("title")));
|
||||
}
|
||||
}, [title]);
|
||||
// const title = watch("title");
|
||||
// useEffect(() => {
|
||||
// if (getValues("title")) {
|
||||
// setValue("slug", createSlug(getValues("title")));
|
||||
// }
|
||||
// }, [title]);
|
||||
|
||||
return (
|
||||
<form
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ export default function StaticPageTable() {
|
|||
async function initState() {
|
||||
const req = {
|
||||
limit: showData,
|
||||
page: page - 1,
|
||||
page: page,
|
||||
search: search,
|
||||
};
|
||||
const res = await getCustomStaticPage(req);
|
||||
|
|
|
|||
Loading…
Reference in New Issue