Browse Source

fix: 禁用tabs跳转

Before 1 year ago
parent
commit
99db00c33c
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/app/[locale]/_home/HomeGames.tsx

+ 3 - 1
src/app/[locale]/_home/HomeGames.tsx

@@ -3,6 +3,7 @@ import { Category, GameListRep, getGamesApi } from "@/api/home";
 import Box from "@/components/Box";
 import { SwiperGroup } from "@/components/Card";
 import { useRouter } from "@/i18n";
+import { Toast } from "antd-mobile";
 import clsx from "clsx";
 import { useTranslations } from "next-intl";
 import { FC, PropsWithChildren, useEffect, useState } from "react";
@@ -24,7 +25,8 @@ const TabItem = ({ item }: { item: TabItemType }) => {
     const router = useRouter();
     const t = useTranslations("ButtonGroup");
     const handler = (item: TabItemType) => {
-        router.push(item.url);
+        // router.push(item.url);
+        Toast.show("it is under development.");
     };
     const cls = clsx("iconfont text-[0.14rem]", item.icon);
     return (