feat: 新建项目保存 Create Drama 执行句柄
This commit is contained in:
1 parent
94a3bcb40b
commit
2304c65013
1 file changed
+4
-1
@@ -126,7 +126,10 @@ const columns: DataTableColumns<Project> = [
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
/** 创建回执只用于跳转,生成进度以后端查询为准。 */
|
/** 创建回执只用于跳转,生成进度以后端查询为准。 */
|
||||||
function openProject(id: string) {
|
function openProject(id: string, executionId: string) {
|
||||||
|
if (typeof localStorage !== 'undefined' && executionId) {
|
||||||
|
localStorage.setItem(`short-drama:workflow-execution:${id}:create-drama`, executionId)
|
||||||
|
}
|
||||||
void router.push('/projects/' + encodeURIComponent(id) + '/create-drama')
|
void router.push('/projects/' + encodeURIComponent(id) + '/create-drama')
|
||||||
}
|
}
|
||||||
/** 清空条件后返回首批,不改变后端数据。 */
|
/** 清空条件后返回首批,不改变后端数据。 */
|
||||||
|
|||||||
Reference in new issue
Block a user