修正其他平台下载链接

This commit is contained in:
vayfou
2026-02-20 21:38:45 +08:00
committed by GitHub
parent bc9e03e101
commit d1e3d6a5ef
+4 -4
View File
@@ -3028,15 +3028,15 @@ export const UserMenu: React.FC = () => {
<button
onClick={() => {
const ua = navigator.userAgent.toLowerCase();
let targetUrl = 'https://github.com/mtvpls/Selene-Build/releases/tag/v0.6.0';
let targetUrl = 'https://github.com/mtvpls/Selene-Build/releases';
// 根据 UA 判断平台
if (ua.includes('windows')) {
targetUrl = 'https://github.com/mtvpls/Selene-Build/releases/tag/v0.6.0';
targetUrl = 'https://github.com/mtvpls/Selene-Build/releases';
} else if (ua.includes('mac')) {
targetUrl = 'https://github.com/mtvpls/Selene-Build/releases/tag/v0.6.0';
targetUrl = 'https://github.com/mtvpls/Selene-Build/releases';
} else if (ua.includes('linux')) {
targetUrl = 'https://github.com/mtvpls/Selene-Build/releases/tag/v0.6.0';
targetUrl = 'https://github.com/mtvpls/Selene-Build/releases';
}
window.open(targetUrl, '_blank');