fix4
parent
792d68ad07
commit
7fc2093e91
|
@ -4,9 +4,14 @@ import React from "react";
|
|||
async function getData(sParams) {
|
||||
//
|
||||
|
||||
const query = {
|
||||
page: 0,
|
||||
...sParams,
|
||||
};
|
||||
|
||||
const res = await fetch(
|
||||
`${process.env.NEXT_PUBLIC_API_URL}/blog?` +
|
||||
new URLSearchParams({ ...sParams })
|
||||
new URLSearchParams({ ...query })
|
||||
// ?page=${params.page ?? 0}
|
||||
// { cache: "no-cache" }
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue