Skip to content

Commit d4b07c0

Browse files
authored
修正镜像站下载链接的组装问题
1 parent ca26e1d commit d4b07c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/.vitepress/theme/components/Download.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ function getDownloadUrl(asset: any): string {
124124
case 'github':
125125
return asset.browser_download_url
126126
case 'ghfast':
127-
return `https://ghfast.top/${asset.browser_download_url.replace('https://github.com/', '')}`
127+
return `https://ghfast.top/${asset.browser_download_url}`
128128
case 'ghproxy':
129-
return `https://gh-proxy.com/${asset.browser_download_url.replace('https://github.com/', '')}`
129+
return `https://gh-proxy.com/${asset.browser_download_url}`
130130
case 'cloud123':
131131
return 'https://www.123684.com/s/9529jv-U4Fxh'
132132
default:

0 commit comments

Comments
 (0)