feat: 更新npm配置和国际化支持
- 添加越南语的服务条款和隐私政策文档 - 更新多语言JSON文件中的品牌名称 - 移除未使用的arch页面和依赖项 - 调整next.config.mjs的输出模式配置 - 更新generateStaticParams以包含越南语支持
This commit is contained in:
@@ -1,37 +0,0 @@
|
||||
"use client";
|
||||
|
||||
import { useEffect } from "react";
|
||||
import { useSectionStore } from "@/stores/sectionStore";
|
||||
|
||||
export default function Page() {
|
||||
const { setSections } = useSectionStore();
|
||||
useEffect(() => {
|
||||
setSections([
|
||||
{ id: "arch-vision", name: "友发愿景" },
|
||||
{ id: "arch-products", name: "产品体系" },
|
||||
{ id: "arch-application", name: "应用场景" },
|
||||
{ id: "arch-contact", name: "联系方式" },
|
||||
]);
|
||||
}, [setSections]);
|
||||
|
||||
return (
|
||||
<div className="w-full">
|
||||
<section id="arch-vision" className="container mx-auto px-4 py-12">
|
||||
<h2 className="text-3xl font-bold mb-4">友发愿景</h2>
|
||||
<p className="text-gray-600">内容占位</p>
|
||||
</section>
|
||||
<section id="arch-products" className="container mx-auto px-4 py-12">
|
||||
<h2 className="text-3xl font-bold mb-4">产品体系</h2>
|
||||
<p className="text-gray-600">内容占位</p>
|
||||
</section>
|
||||
<section id="arch-application" className="container mx-auto px-4 py-12">
|
||||
<h2 className="text-3xl font-bold mb-4">应用场景</h2>
|
||||
<p className="text-gray-600">内容占位</p>
|
||||
</section>
|
||||
<section id="arch-contact" className="container mx-auto px-4 py-12">
|
||||
<h2 className="text-3xl font-bold mb-4">联系方式</h2>
|
||||
<p className="text-gray-600">内容占位</p>
|
||||
</section>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -6,10 +6,11 @@ export default function Home() {
|
||||
return <HomeComponent />;
|
||||
}
|
||||
|
||||
// export async function generateStaticParams() {
|
||||
// return [
|
||||
// { locale: 'en' },
|
||||
// { locale: 'zh' },
|
||||
// { locale: 'ja' },
|
||||
// ]
|
||||
// }
|
||||
export async function generateStaticParams() {
|
||||
return [
|
||||
{ locale: 'en' },
|
||||
{ locale: 'zh' },
|
||||
{ locale: 'vi' },
|
||||
// { locale: 'ja' },
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user