feat: 创建项目回传工作流执行 ID

This commit is contained in:
GouJ committed 2026-09-26 20:10:48 +08:00
1 parent 5502823524
commit 94a3bcb40b
1 file changed
+2 -2
@@ -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 {