修复热榜和banner跳转

This commit is contained in:
al 2025-01-17 17:19:25 +08:00
parent 783076d290
commit 3717ee758c
2 changed files with 4 additions and 1 deletions

View File

@ -4,8 +4,9 @@ import LoadingMask from "@/components/LoadingMask";
import { useRouter } from "next/navigation";
import requireAPI from "@/utils/requireAPI";
import OwnImage from "@/components/OwnImage";
import { goToPage } from "@/utils/tools";
import baseRequest from "@/utils/baseRequest";
export default function Banner() {
const base = baseRequest();
const [bannerList, setBannerList] = useState([]);
const [isLoading, setIsLoading] = useState(false);
const router = useRouter();

View File

@ -6,7 +6,9 @@ import requireAPI from "@/utils/requireAPI";
import OwnImage from "@/components/OwnImage";
import OwnIcon from "@/components/OwnIcon";
import Banner from "../Banner";
import baseRequest from "@/utils/baseRequest";
export default function HostList() {
const base = baseRequest();
const [hostList, setHostList] = useState([]);
const [isLoading, setIsLoading] = useState(false);
const router = useRouter();