feat: 创建项目回传工作流执行 ID
This commit is contained in:
1 parent
5502823524
commit
94a3bcb40b
1 file changed
+2
-2
@@ -10,7 +10,7 @@ import { projectsApi } from '../api'
|
|||||||
import { errorMessage } from '../../../lib/http'
|
import { errorMessage } from '../../../lib/http'
|
||||||
|
|
||||||
/** 新建剧本表单,202 成功后交由父级跳转,不在前端模拟生成。 */
|
/** 新建剧本表单,202 成功后交由父级跳转,不在前端模拟生成。 */
|
||||||
const emit = defineEmits<{ created: [projectId: string] }>()
|
const emit = defineEmits<{ created: [projectId: string, executionId: string] }>()
|
||||||
/** 新建剧本弹窗是否打开。 */
|
/** 新建剧本弹窗是否打开。 */
|
||||||
const open = ref(false)
|
const open = ref(false)
|
||||||
/** 创建请求是否正在提交。 */
|
/** 创建请求是否正在提交。 */
|
||||||
@@ -35,7 +35,7 @@ async function submit() {
|
|||||||
open.value = false
|
open.value = false
|
||||||
form.title = ''
|
form.title = ''
|
||||||
form.topic = ''
|
form.topic = ''
|
||||||
emit('created', result.projectId)
|
emit('created', result.projectId, result.executionId)
|
||||||
} catch (cause) {
|
} catch (cause) {
|
||||||
error.value = errorMessage(cause)
|
error.value = errorMessage(cause)
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
Reference in new issue
Block a user