开源软件列表导出接口对接

This commit is contained in:
付民康
2025-03-26 10:14:40 +08:00
parent d0e6d56624
commit 8e99519a0d
2 changed files with 106 additions and 43 deletions

View File

@@ -241,3 +241,15 @@ export const getGroupSubscribeList = (data): Promise<any> => {
})
);
}
// 搜索结果导出接口
export const getReleaseExport = (data): Promise<any> => {
return reqCatchV2(() =>
request({
url: `/api/v1/repo/release/export`,
method: 'POST',
data,
responseType: 'blob' // 关键告诉axios这是二进制数据
})
);
}