From 04216a519b4a5775a7b7c6133a897d66b5c544de Mon Sep 17 00:00:00 2001 From: liangzai <2440983361@qq.com> Date: Wed, 9 Oct 2024 00:16:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9create=20tab=E9=A1=BA?= =?UTF-8?q?=E5=BA=8F=E4=BB=A5=E5=8F=8A=E9=BB=98=E8=AE=A4=EF=BC=8C=E6=96=87?= =?UTF-8?q?=E7=AB=A0=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../(article)/article-list/[page]/page.tsx | 4 +-- .../(main)/(article)/article/[id]/page.tsx | 4 +-- src/ui/(console)/create/create-tabs.tsx | 30 +++++++++---------- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/app/(main)/(article)/article-list/[page]/page.tsx b/src/app/(main)/(article)/article-list/[page]/page.tsx index 2d86f66..7db4f70 100644 --- a/src/app/(main)/(article)/article-list/[page]/page.tsx +++ b/src/app/(main)/(article)/article-list/[page]/page.tsx @@ -81,8 +81,8 @@ export default async function ArticleList({ params, searchParams }) { {item[`${locale}_keywords`].join()} diff --git a/src/app/(main)/(article)/article/[id]/page.tsx b/src/app/(main)/(article)/article/[id]/page.tsx index fd57b82..b79e9c8 100644 --- a/src/app/(main)/(article)/article/[id]/page.tsx +++ b/src/app/(main)/(article)/article/[id]/page.tsx @@ -49,14 +49,14 @@ export default async function Article({ params }) { {title} - + {/* {keyword} + /> */}
diff --git a/src/ui/(console)/create/create-tabs.tsx b/src/ui/(console)/create/create-tabs.tsx index 5ab0ce1..880c1e6 100644 --- a/src/ui/(console)/create/create-tabs.tsx +++ b/src/ui/(console)/create/create-tabs.tsx @@ -11,7 +11,7 @@ import ImageVideo from "./imageVideo"; import { useTranslations } from "next-intl"; export default function CreateTabs() { const t = useTranslations("createTabs"); - const [tabVal, setTabVal] = useState("text"); + const [tabVal, setTabVal] = useState("tiktok"); const tabsChange = (val: string) => { setTabVal(val); }; @@ -23,20 +23,6 @@ export default function CreateTabs() { } }; const tabs = [ - { - name: t("aiTextVideoGenerator"), - value: "text", - component: , - videoTemp: - "https://file.typeframes.com.cn/img-to-video/cn/demo_video.webm", - }, - { - name: t("aiImageVideoGenerator"), - value: "image", - component: , - videoTemp: - "https://file.typeframes.com.cn/img-to-video/cn/demo_image.webm", - }, { name: t("aiTiktokVideoGenerator"), value: "tiktok", @@ -64,6 +50,20 @@ export default function CreateTabs() { ImageTemp: "https://file.typeframes.com.cn/music-to-video/cn/demo_video.webm", }, + { + name: t("aiTextVideoGenerator"), + value: "text", + component: , + videoTemp: + "https://file.typeframes.com.cn/img-to-video/cn/demo_video.webm", + }, + { + name: t("aiImageVideoGenerator"), + value: "image", + component: , + videoTemp: + "https://file.typeframes.com.cn/img-to-video/cn/demo_image.webm", + }, ]; return (