main
parent
413a063668
commit
ba61cd083f
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
/** @type {import('postcss-load-config').Config} */
|
/** @type {import('postcss-load-config').Config} */
|
||||||
const config = {
|
const config = {
|
||||||
plugins: {
|
plugins: {
|
||||||
|
|
|
@ -5,17 +5,7 @@ import Footer from "@/app/components/footer";
|
||||||
|
|
||||||
import Examples from "../components/Examples";
|
import Examples from "../components/Examples";
|
||||||
|
|
||||||
type CaseType = {
|
export default async function Home(props: { params: { lang: string[] } }) {
|
||||||
img: string;
|
|
||||||
};
|
|
||||||
export type PropsType = {
|
|
||||||
params: {
|
|
||||||
lang: string[];
|
|
||||||
caseList: CaseType[];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
export default async function Home(props: { params: { lang: string[] }; caseList: CaseType[] }) {
|
|
||||||
const lang = props.params.lang || ["zh"];
|
const lang = props.params.lang || ["zh"];
|
||||||
|
|
||||||
const dict = await getDictionary(lang[0]);
|
const dict = await getDictionary(lang[0]);
|
||||||
|
|
Loading…
Reference in New Issue