fix(接口测试): 调整导出接口定义swagger文件名

--bug=1043972 --user=王旭 【接口测试】接口定义-导出接口定义的文件名错误 https://www.tapd.cn/55049933/s/1548645
This commit is contained in:
WangXu10 2024-07-16 10:00:22 +08:00 committed by 刘瑞斌
parent e045eb3b32
commit 6dd5cf73f7
1 changed files with 3 additions and 1 deletions

View File

@ -282,6 +282,7 @@
sortDefinition,
updateDefinition,
} from '@/api/modules/api-test/management';
import { getProjectInfo } from '@/api/modules/project-management/basicInfo';
import { useI18n } from '@/hooks/useI18n';
import useModal from '@/hooks/useModal';
import useTableStore from '@/hooks/useTableStore';
@ -933,7 +934,8 @@
},
type
);
downloadByteFile(new Blob([JSON.stringify(result)]), 'Swagger_Api_Case.json');
const res = await getProjectInfo(appStore.currentProjectId);
downloadByteFile(new Blob([JSON.stringify(result)]), `Swagger_Api_${res.name}.json`);
}
/**