xiaolin.fu 1 год назад
Родитель
Сommit
3c4062130d
2 измененных файлов с 3 добавлено и 1 удалено
  1. 1 1
      .env.development
  2. 2 0
      src/app/[locale]/page.tsx

+ 1 - 1
.env.development

@@ -1,2 +1,2 @@
 NEXT_PUBLIC_BASE_URL=http://192.168.0.66:8800
-#NEXT_PUBLIC_BASE_URL=http://206.168.191.125:8800
+# NEXT_PUBLIC_BASE_URL=http://206.168.191.125:8800

+ 2 - 0
src/app/[locale]/page.tsx

@@ -15,7 +15,9 @@ const getGames = async (): Promise<GroupType[]> => {
     const data = await fetch(`${BASE_URL}/v1/api/front/game_list`, {
         method: "POST",
         body: JSON.stringify({}),
+        cache: "no-cache",
     }).then((res) => res.json()).catch((err) => console.error(err));
+    console.log('dasdasd',data?.data[0].category)
     return data?.data || [];
 };
 export default async function Page() {