@@ -17,6 +17,7 @@ const getBanners = React.cache(async () => {
});
const Page = async () => {
const banners = await getBanners();
+ console.log(`🚀🚀🚀🚀🚀-> in page.tsx on 20`, banners);
if (!banners.length) return null;
@@ -7,7 +7,6 @@ import { FC, PropsWithChildren, ReactNode, useEffect, useState } from "react";
import styles from "./style.module.scss";
// import { getToken } from "@/utils/Cookies";
-import clearCache from "./actions";
/**
* @description 自定义头部返回组件
@@ -66,7 +65,7 @@ const HeaderBack: FC<PropsWithChildren<HeaderBackProps>> = ({
const router = useRouter();
const goPage = async (path = "") => {
if (path) {
- await clearCache();
+ // await clearCache();
router.replace("/");
return;
}