update
This commit is contained in:
@ -13,7 +13,23 @@ const Page = async ({
|
|||||||
const data = await articleDetail({ id: articleId });
|
const data = await articleDetail({ id: articleId });
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<ArticleWithBreadcrumb breadcrumb={[]}>
|
<ArticleWithBreadcrumb
|
||||||
|
breadcrumb={[
|
||||||
|
{ title: "首页", href: "/" },
|
||||||
|
{
|
||||||
|
title: "学术交流",
|
||||||
|
href: "/academic-exchange/academic-events/pages/1",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "学术活动",
|
||||||
|
href: "/academic-exchange/academic-events/pages/1",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: data.title,
|
||||||
|
href: `/academic-exchange/academic-events/${data.id}`,
|
||||||
|
},
|
||||||
|
]}
|
||||||
|
>
|
||||||
<ArticleRender article={data} />
|
<ArticleRender article={data} />
|
||||||
</ArticleWithBreadcrumb>
|
</ArticleWithBreadcrumb>
|
||||||
</>
|
</>
|
||||||
|
@ -14,8 +14,8 @@ export default async function ResearchProgress({
|
|||||||
<ArticleWithBreadcrumb
|
<ArticleWithBreadcrumb
|
||||||
breadcrumb={[
|
breadcrumb={[
|
||||||
{ title: "首页", href: "/" },
|
{ title: "首页", href: "/" },
|
||||||
{ title: "科研进展", href: "/general-news/pages/1" },
|
{ title: "科研进展", href: "/research-progress/pages/1" },
|
||||||
{ title: data.title, href: `/general-news/${data.id}` },
|
{ title: data.title, href: `/research-progress/${data.id}` },
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
<ArticleRender article={data} />
|
<ArticleRender article={data} />
|
||||||
|
@ -9,6 +9,7 @@ import "swiper/css";
|
|||||||
import "swiper/css/pagination";
|
import "swiper/css/pagination";
|
||||||
import "swiper/css/effect-coverflow";
|
import "swiper/css/effect-coverflow";
|
||||||
import "swiper/css/autoplay";
|
import "swiper/css/autoplay";
|
||||||
|
import Image from "next/image";
|
||||||
|
|
||||||
const data = [
|
const data = [
|
||||||
{
|
{
|
||||||
@ -134,7 +135,7 @@ const AnhuiSwiper = () => {
|
|||||||
swiper?.destroy();
|
swiper?.destroy();
|
||||||
swiper = null;
|
swiper = null;
|
||||||
};
|
};
|
||||||
}, [data]);
|
}, []);
|
||||||
return (
|
return (
|
||||||
<div className={"flex h-[205px] flex-col bg-white"}>
|
<div className={"flex h-[205px] flex-col bg-white"}>
|
||||||
<div
|
<div
|
||||||
|
@ -79,13 +79,7 @@ const ArticleItem = ({ article }: { article: Article }) => {
|
|||||||
className={"aspect-square"}
|
className={"aspect-square"}
|
||||||
href={`/branch-life-sketch/${article.id}`}
|
href={`/branch-life-sketch/${article.id}`}
|
||||||
>
|
>
|
||||||
<img
|
<img alt={""} className={"h-full w-full"} src={article.image} />
|
||||||
alt={""}
|
|
||||||
className={"h-full w-full"}
|
|
||||||
src={article.image
|
|
||||||
.replace("http://101.34.131.16:8084/api/uploads/", "")
|
|
||||||
.replace("http://localhost:8084/api/uploads/", "")}
|
|
||||||
/>
|
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
<div className={"ml-1 w-0 flex-1"}>
|
<div className={"ml-1 w-0 flex-1"}>
|
||||||
|
@ -1,16 +1,19 @@
|
|||||||
/** @type {import("next").NextConfig} */
|
/** @type {import("next").NextConfig} */
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
async rewrites() {
|
async rewrites() {
|
||||||
return [
|
return process.env.NODE_ENV === "development"
|
||||||
{
|
? [
|
||||||
source: "/api/:path*",
|
{
|
||||||
destination: "http://localhost:8084/api/:path*"
|
source: "/api/:path*",
|
||||||
}, {
|
destination: "http://localhost:8084/api/:path*",
|
||||||
source: "/admin-api/:path*",
|
},
|
||||||
destination: "http://localhost:8082/api/:path*"
|
{
|
||||||
},
|
source: "/admin-api/:path*",
|
||||||
];
|
destination: "http://localhost:8082/api/:path*",
|
||||||
}
|
},
|
||||||
|
]
|
||||||
|
: [];
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = nextConfig;
|
module.exports = nextConfig;
|
||||||
|
Reference in New Issue
Block a user