diff --git a/app/create/layout.tsx b/app/movies/layout.tsx similarity index 100% rename from app/create/layout.tsx rename to app/movies/layout.tsx diff --git a/app/create/page.tsx b/app/movies/page.tsx similarity index 100% rename from app/create/page.tsx rename to app/movies/page.tsx diff --git a/app/create/work-flow/page.tsx b/app/movies/work-flow/page.tsx similarity index 100% rename from app/create/work-flow/page.tsx rename to app/movies/work-flow/page.tsx diff --git a/components/ChatInputBox/ChatInputBox.tsx b/components/ChatInputBox/ChatInputBox.tsx index de7a5bf..981ec00 100644 --- a/components/ChatInputBox/ChatInputBox.tsx +++ b/components/ChatInputBox/ChatInputBox.tsx @@ -150,7 +150,7 @@ const RenderTemplateStoryMode = ({ ); if (projectId) { // 跳转到电影详情页 - router.push(`/create/work-flow?episodeId=${projectId}`); + router.push(`/movies/work-flow?episodeId=${projectId}`); onClose(); // 重置状态 setSelectedTemplate(null); @@ -853,7 +853,7 @@ export function ChatInputBox({ noData }: { noData: boolean }) { episodeData ); const episodeId = result.project_id; - router.push(`/create/work-flow?episodeId=${episodeId}`); + router.push(`/movies/work-flow?episodeId=${episodeId}`); } catch (error) { console.error("创建剧集失败:", error); } finally { @@ -1262,7 +1262,7 @@ const PhotoStoryModal = ({ if (!episodeResponse) return; let episodeId = episodeResponse.project_id; // let episodeId = '9c34fcc4-c8d8-44fc-879e-9bd56f608c76'; - router.push(`/create/work-flow?episodeId=${episodeId}`); + router.push(`/movies/work-flow?episodeId=${episodeId}`); // 成功后关闭弹窗 handleClose(); } catch (error) { diff --git a/components/layout/sidebar.tsx b/components/layout/sidebar.tsx index f917513..aba8bb0 100644 --- a/components/layout/sidebar.tsx +++ b/components/layout/sidebar.tsx @@ -32,7 +32,7 @@ const navigationItems = [ { title: 'Main', items: [ - { name: 'My Portfolio', href: '/create', icon: BookHeart }, + { name: 'My Portfolio', href: '/movies', icon: BookHeart }, ], } ]; diff --git a/components/layout/top-bar.tsx b/components/layout/top-bar.tsx index fc43ccb..5331f58 100644 --- a/components/layout/top-bar.tsx +++ b/components/layout/top-bar.tsx @@ -213,7 +213,7 @@ export function TopBar({ collapsed }: { collapsed: boolean }) {
router.push("/create")} + onClick={() => router.push("/movies")} > Go Started
@@ -367,7 +367,7 @@ export function TopBar({ collapsed }: { collapsed: boolean }) {
router.push("/create")} + onClick={() => router.push("/movies")} > Go Started
diff --git a/components/pages/create-to-video2.tsx b/components/pages/create-to-video2.tsx index e2ee369..c72451a 100644 --- a/components/pages/create-to-video2.tsx +++ b/components/pages/create-to-video2.tsx @@ -169,7 +169,7 @@ export default function CreateToVideo2() {
router.push(`/create/work-flow?episodeId=${project.project_id}`)} + onClick={() => router.push(`/movies/work-flow?episodeId=${project.project_id}`)} onMouseEnter={() => handleMouseEnter(project.project_id)} onMouseLeave={() => handleMouseLeave(project.project_id)} data-alt="project-card" diff --git a/components/pages/home-page2.tsx b/components/pages/home-page2.tsx index bd639fd..0dc5484 100644 --- a/components/pages/home-page2.tsx +++ b/components/pages/home-page2.tsx @@ -237,7 +237,7 @@ function HomeModule1() { className="w-[11.5rem] h-[3.75rem] mt-[4rem] text-base flex justify-center items-center font-normal border border-white rounded-full bg-white/30 cursor-pointer" onClick={() => { if (localStorage.getItem("token")) { - router.push("/create"); + router.push("/movies"); } else { router.push("/login"); } diff --git a/components/pages/login.tsx b/components/pages/login.tsx index 3d7b8a8..47627b4 100644 --- a/components/pages/login.tsx +++ b/components/pages/login.tsx @@ -92,7 +92,7 @@ export default function Login() { try { await loginUser(email, password); // 登录成功后跳转到首页 - router.push("/create"); + router.push("/movies"); } catch (error: any) { console.error("Login failed:", error);