2023-11-25 20:15:24 +08:00

10 lines
363 B
TypeScript

import http from '~/api/index'
import FileSaver from "file-saver";
export const downloadXml = async (data: object) => {
const res = await http.download('https://www.666cxf.com/stage-api/workflow/model/download', data)
FileSaver.saveAs(
new Blob([res], { type: 'application/octet-stream;charset=utf-8' }),
'测试流程.bpmn20.xml'
)
}