本地开发跨域配置,版本信息页面接口对接Mock数据

This commit is contained in:
付民康
2025-03-17 11:16:05 +08:00
parent ebcd74a34f
commit 8c68ceb413
4 changed files with 108 additions and 50 deletions

10
src/api/jyh/index.ts Normal file
View File

@@ -0,0 +1,10 @@
import request from '@/utils/request';
// 详情-获取版本信息
export function releaseInfo(params: { repoId: string,releaseId: string }): Promise<any> {
const { repoId,releaseId } = params;
return request({
url: `/api/v1/repo/release/info?repo_id=${repoId}&releaseId=${releaseId}`,
method: 'get'
});
}