Export DSL from history (#24939)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
8fcc864fb7
commit
25a11bfafc
9 changed files with 119 additions and 13 deletions
|
|
@ -346,7 +346,7 @@ export const useDSL = () => {
|
|||
|
||||
const appDetail = useAppStore(s => s.appDetail)
|
||||
|
||||
const handleExportDSL = useCallback(async (include = false) => {
|
||||
const handleExportDSL = useCallback(async (include = false, workflowId?: string) => {
|
||||
if (!appDetail)
|
||||
return
|
||||
|
||||
|
|
@ -358,6 +358,7 @@ export const useDSL = () => {
|
|||
await doSyncWorkflowDraft()
|
||||
const { data } = await exportAppConfig({
|
||||
appID: appDetail.id,
|
||||
workflowID: workflowId,
|
||||
include,
|
||||
})
|
||||
const a = document.createElement('a')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue