chore: test by api

This commit is contained in:
jialin
2025-10-13 14:40:26 +08:00
parent 54703c67c1
commit a5c1b8e15f
29 changed files with 683 additions and 298 deletions
@@ -0,0 +1,14 @@
import { downloadFile } from '@/utils/download-stream';
import { json2Yaml } from '../config';
const useExportYAML = () => {
const exportYAML = (currentData?: any) => {
const yaml = json2Yaml(currentData || {});
const blob = new Blob([yaml], { type: 'text/yaml;charset=utf-8' });
downloadFile(blob, `${currentData.backend_name}.yml`);
};
return { exportYAML };
};
export default useExportYAML;