From 2f829ba584534479958c21328af823f910c21944 Mon Sep 17 00:00:00 2001 From: icefire <1028247921@qq.com> Date: Wed, 16 Oct 2024 16:45:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=BF=E6=8D=A2img=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E9=9D=99=E6=80=81=E8=B5=84=E6=BA=90=E6=89=93?= =?UTF-8?q?=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- next.config.mjs | 11 ++++++++++- src/app/[lang]/home/components/form.tsx | 4 +--- src/app/[lang]/home/page.tsx | 14 +++++++------- src/app/components/footer.tsx | 4 ++-- src/app/components/header.tsx | 9 ++++----- src/app/layout.tsx | 6 ++++++ 6 files changed, 30 insertions(+), 18 deletions(-) diff --git a/next.config.mjs b/next.config.mjs index 15eff7c..dbb8700 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,6 +1,15 @@ /** @type {import('next').NextConfig} */ const nextConfig = { - output: 'export' + output: 'export', + async redirects() { + return [ + { + source: '/', + destination: '/zh/home', + permanent: true, + }, + ]; + }, }; export default nextConfig; diff --git a/src/app/[lang]/home/components/form.tsx b/src/app/[lang]/home/components/form.tsx index 3fb7eab..b292f84 100644 --- a/src/app/[lang]/home/components/form.tsx +++ b/src/app/[lang]/home/components/form.tsx @@ -1,5 +1,3 @@ -import Image from "next/image"; - export default function Form() { return ( @@ -27,7 +25,7 @@ export default function Form() { style={{background: 'linear-gradient(155deg, #A4D5FF 55%, #82B2FF 99%)'}} >
提交
-
-
-
-
-
- { return
- }) { const { dict } = props return (