import http from "@/api";
import FileSaver from "file-saver";

export const downloadXml = async (data: object) => {
    const res = await http.download("https://demo.lowflow.vip/api/model/download", data);
    FileSaver.saveAs(new Blob([res], { type: "application/octet-stream;charset=utf-8" }), "测试流程.bpmn20.xml");
};
