mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 02:19:45 +00:00
ip
This commit is contained in:
1 parent
a600e91744
commit
84d6f88535
7 files changed
+12
-11
No files matched your search
@@ -15,7 +15,7 @@ export function useWpMainPageData() {
|
||||
|
||||
useEffect(() => {
|
||||
// Заменяй slug на нужный слаг твоей главной страницы в WP
|
||||
fetch("https://test.skbkit.ru/wp-json/wp/v2/pages?slug=mainpage&_fields=acf")
|
||||
fetch("http://192.168.100.215/wp-json/wp/v2/pages?slug=main")
|
||||
.then((res) => res.json())
|
||||
.then((data: WpPage[]) => {
|
||||
if (data && data.length > 0) {
|
||||
|
||||
Reference in new issue
Block a user