|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
const a = document.createElement('a') |
|
|
const a = document.createElement('a') |
|
|
const file = new Blob([data], { type: 'application/yaml' }) |
|
|
const file = new Blob([data], { type: 'application/yaml' }) |
|
|
a.href = URL.createObjectURL(file) |
|
|
|
|
|
|
|
|
const url = URL.createObjectURL(file) |
|
|
|
|
|
a.href = url |
|
|
a.download = `${knowledgeName}.pipeline` |
|
|
a.download = `${knowledgeName}.pipeline` |
|
|
a.click() |
|
|
a.click() |
|
|
|
|
|
URL.revokeObjectURL(url) |
|
|
} |
|
|
} |
|
|
catch { |
|
|
catch { |
|
|
notify({ type: 'error', message: t('app.exportFailed') }) |
|
|
notify({ type: 'error', message: t('app.exportFailed') }) |