diff --git a/app/(introduce)/contact-us/page.tsx b/app/(introduce)/contact-us/page.tsx index 1d421b5..80c2ca6 100644 --- a/app/(introduce)/contact-us/page.tsx +++ b/app/(introduce)/contact-us/page.tsx @@ -1,3 +1,6 @@ +import Image from "next/image"; +import addressMap from "@/app/_assets/address_map.png"; + const Page = () => { return ( <> @@ -17,6 +20,9 @@ const Page = () => { 通信地址:安徽省合肥市高新区创新产业园D1 7楼

邮政编码:230022

+

+ {""} +

); }; diff --git a/app/_assets/address_map.png b/app/_assets/address_map.png new file mode 100644 index 0000000..e563ee6 Binary files /dev/null and b/app/_assets/address_map.png differ diff --git a/app/_components/AnhuiSwiper.tsx b/app/_components/AnhuiSwiper.tsx index 8afeb79..b24dbc0 100644 --- a/app/_components/AnhuiSwiper.tsx +++ b/app/_components/AnhuiSwiper.tsx @@ -154,7 +154,7 @@ const AnhuiSwiper = () => { className={"h-full w-full object-contain"} src={`${ process.env.NEXT_PUBLIC_CLIENT_ADMIN_BASE_URL - }${el.path.replace(/^api/, "")}`} + }${el.path.match(/\/uploads\/.*/)?.[0]}`} alt={""} /> diff --git a/app/_components/ArticleBlock.tsx b/app/_components/ArticleBlock.tsx index 2acf271..63a3e64 100644 --- a/app/_components/ArticleBlock.tsx +++ b/app/_components/ArticleBlock.tsx @@ -27,7 +27,7 @@ const ArticleBlock = async ({ linkPrefix: string; showDate?: boolean; }) => { - const data = await listArticles({ cid: category }); + const data = await listArticles({ cid: category, sort: "new" }); return (
{ const { data } = useSWR(`/pc/articleDetail?id=${article.id}`, (key) => axiosClientInstance.get>(key), ); - + const cover_path = article.image?.match(/\/uploads\/.*/)?.[0]; return (
- {""} + {""}
diff --git a/app/page.tsx b/app/page.tsx index 2a20be9..b1ebf63 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -6,7 +6,9 @@ import AnhuiSwiper from "@/app/_components/AnhuiSwiper"; import LatestNews from "@/app/_components/LatestNews"; import FriendLinks from "@/app/_components/FriendLinks"; import BranchLifeSketch from "@/app/_components/BranchLifeSketch"; +import { ReactNode } from "react"; +export const dynamic = "force-dynamic"; export default async function Home() { return (
diff --git a/next.config.js b/next.config.js index f9a789a..107af23 100644 --- a/next.config.js +++ b/next.config.js @@ -5,11 +5,11 @@ const nextConfig = { ? [ { source: "/api/:path*", - destination: "http://localhost:8084/api/:path*", + destination: "http://101.34.131.16:8086/api/:path*", }, { source: "/admin-api/:path*", - destination: "http://localhost:8082/api/:path*", + destination: "http://101.34.131.16:8086/admin-api/:path*", }, ] : [];