We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32fb98e commit 420020cCopy full SHA for 420020c
1 file changed
packages/code-api/src/gitlink/gitlink.service.ts
@@ -98,11 +98,10 @@ export class GitLinkAPIService implements ICodeAPIService {
98
return `${repo.owner}/${repo.name}`;
99
}
100
101
- // TODO 静态资源路径 gitlink 静态资源好像无法用commit获取
102
transformStaticResource(repo: IRepositoryModel, path: string) {
103
- return `${this.config.origin}/repo/${this.getProjectPath(repo)}/raw/branch/${
+ return `${this.config.origin}/api/${this.getProjectPath(repo)}/raw?ref=${
104
repo.commit
105
- }/${path}`;
+ }&filepath=${path}`;
106
107
108
protected async request<T>(path: string, options?: RequestOptions): Promise<T> {
0 commit comments