From 94a3bcb40b134d282eff4343b9c3f361fa5d12a7 Mon Sep 17 00:00:00 2001 From: GouJ Date: Sat, 26 Sep 2026 20:10:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=9B=E5=BB=BA=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=9B=9E=E4=BC=A0=E5=B7=A5=E4=BD=9C=E6=B5=81=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=20ID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/features/projects/components/CreateProjectDialog.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/features/projects/components/CreateProjectDialog.vue b/src/features/projects/components/CreateProjectDialog.vue index 678c87d..cb61aa2 100644 --- a/src/features/projects/components/CreateProjectDialog.vue +++ b/src/features/projects/components/CreateProjectDialog.vue @@ -10,7 +10,7 @@ import { projectsApi } from '../api' import { errorMessage } from '../../../lib/http' /** 新建剧本表单,202 成功后交由父级跳转,不在前端模拟生成。 */ -const emit = defineEmits<{ created: [projectId: string] }>() +const emit = defineEmits<{ created: [projectId: string, executionId: string] }>() /** 新建剧本弹窗是否打开。 */ const open = ref(false) /** 创建请求是否正在提交。 */ @@ -35,7 +35,7 @@ async function submit() { open.value = false form.title = '' form.topic = '' - emit('created', result.projectId) + emit('created', result.projectId, result.executionId) } catch (cause) { error.value = errorMessage(cause) } finally {