Skip to content

🎬 火宝短剧 - 基于AI的一站式短剧生成平台 《一句话生成完整短剧,从剧本到成片全自动化》 Huobao Drama - An AI-Powered End-to-End Short Drama Generator "One Sentence to Complete Drama: Fully Automated from Script to Final Video"

TypeScript

feat(editor): 新增合成工作台骨架路由

Connor86a70dc68ac5
diff --git a/web/src/router/index.ts b/web/src/router/index.ts
index 79cb6a2..103e293 100644
--- a/web/src/router/index.ts
+++ b/web/src/router/index.ts
@@ -74,6 +74,11 @@ const routes: RouteRecordRaw[] = [
component: () => import('../views/drama/ProfessionalEditor.vue'),
meta: { fullscreen: true }
},
+ {
+ path: '/dramas/:id/episode/:episodeId/composition',
+ name: 'CompositionWorkbench',
+ component: () => import('@/views/drama/professional/CompositionWorkbench.vue'),
+ },
{
path: '/settings/ai-config',
name: 'AIConfig',
diff --git a/web/src/views/drama/professional/CompositionWorkbench.vue b/web/src/views/drama/professional/CompositionWorkbench.vue
new file mode 100644
index 0000000..734b0d2
--- /dev/null
+++ b/web/src/views/drama/professional/CompositionWorkbench.vue
@@ -0,0 +1,52 @@
+<template>
+ <div class="composition-workbench">
+ <div class="workbench-header">
+ <button class="back-btn" @click="$router.back()">
+ <el-icon><ArrowLeft /></el-icon>
+ <span>返回编辑器</span>
+ </button>
+ <span class="workbench-title">合成工作台</span>
+ </div>
+ <div class="workbench-body">
+ <el-empty description="合成功能迁移中..." />
+ </div>
+ </div>
+</template>
+
+<script setup lang="ts">
+import { ArrowLeft } from '@element-plus/icons-vue'
+</script>
+
+<style scoped>
+.composition-workbench {
+ display: flex;
+ flex-direction: column;
+ height: 100vh;
+ background: var(--bg-primary);
+}
+.workbench-header {
+ display: flex;
+ align-items: center;
+ gap: 12px;
+ padding: 0 16px;
+ height: 48px;
+ border-bottom: 1px solid var(--border-primary);
+ flex-shrink: 0;
+}
+.back-btn {
+ display: flex;
+ align-items: center;
+ gap: 6px;
+ padding: 6px 10px;
+ border: none;
+ background: none;
+ color: var(--text-secondary);
+ cursor: pointer;
+ border-radius: 6px;
+ font-size: 13px;
+ transition: all 150ms;
+}
+.back-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); }
+.workbench-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
+.workbench-body { flex: 1; display: flex; align-items: center; justify-content: center; }
+</style>