mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-14 14:50:50 +08:00
✨ feat: 修改下载地址
This commit is contained in:
2
components.d.ts
vendored
2
components.d.ts
vendored
@@ -8,7 +8,6 @@ export {}
|
||||
declare module 'vue' {
|
||||
export interface GlobalComponents {
|
||||
Coffee: typeof import('./src/components/Coffee.vue')['default']
|
||||
Cooffee: typeof import('./src/components/Cooffee.vue')['default']
|
||||
InstallAppModal: typeof import('./src/components/common/InstallAppModal.vue')['default']
|
||||
MPop: typeof import('./src/components/common/MPop.vue')['default']
|
||||
MusicList: typeof import('./src/components/MusicList.vue')['default']
|
||||
@@ -38,7 +37,6 @@ declare module 'vue' {
|
||||
PlayListsItem: typeof import('./src/components/common/PlayListsItem.vue')['default']
|
||||
PlaylistType: typeof import('./src/components/PlaylistType.vue')['default']
|
||||
PlayVideo: typeof import('./src/components/common/PlayVideo.vue')['default']
|
||||
PWAInstallPrompt: typeof import('./src/components/common/PWAInstallPrompt.vue')['default']
|
||||
RecommendAlbum: typeof import('./src/components/RecommendAlbum.vue')['default']
|
||||
RecommendSinger: typeof import('./src/components/RecommendSinger.vue')['default']
|
||||
RecommendSonglist: typeof import('./src/components/RecommendSonglist.vue')['default']
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
<link rel="stylesheet" href="/icon/iconfont.css" />
|
||||
<link rel="stylesheet" href="/css/animate.css" />
|
||||
<link rel="stylesheet" href="/css/base.css" />
|
||||
<script defer src="https://cn.vercount.one/js"></script>
|
||||
|
||||
<!-- 动画配置 -->
|
||||
<style>
|
||||
@@ -43,6 +44,12 @@
|
||||
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
<div style="display: none;">
|
||||
Total Page View <span id="vercount_value_page_pv">Loading</span>
|
||||
Total Visits <span id="vercount_value_site_pv">Loading</span>
|
||||
Site Total Visitors <span id="vercount_value_site_uv">Loading</span>
|
||||
</div>
|
||||
<!-- 收款码图片预加载 -->
|
||||
<link rel="preload" as="image" href="https://github.com/algerkong/algerkong/blob/main/alipay.jpg?raw=true" />
|
||||
<link rel="preload" as="image" href="https://github.com/algerkong/algerkong/blob/main/wechat.jpg?raw=true" />
|
||||
|
||||
@@ -36,20 +36,21 @@ const closeModal = () => {
|
||||
const handleInstall = async () => {
|
||||
// 新页面打开
|
||||
// 识别当前环境是 mac 还是 windows
|
||||
const os = navigator.platform;
|
||||
const isMac = os.includes('Mac');
|
||||
const isWindows = os.includes('Win');
|
||||
const urls = {
|
||||
mac: 'http://file.alger.fun/d/ali/%E8%BD%AF%E4%BB%B6/AlgerMusic/AlgerMusic.dmg',
|
||||
windows: 'http://file.alger.fun/d/ali/%E8%BD%AF%E4%BB%B6/AlgerMusic/AlgerMusic.exe',
|
||||
};
|
||||
// 根据操作系统选择下载链接
|
||||
let downloadUrl = '';
|
||||
if (isMac) {
|
||||
downloadUrl = urls.mac;
|
||||
} else if (isWindows) {
|
||||
downloadUrl = urls.windows;
|
||||
}
|
||||
// const os = navigator.platform;
|
||||
// const isMac = os.includes('Mac');
|
||||
// const isWindows = os.includes('Win');
|
||||
// const urls = {
|
||||
// mac: 'http://file.alger.fun/d/ali/%E8%BD%AF%E4%BB%B6/AlgerMusic/AlgerMusic.dmg',
|
||||
// windows: 'http://file.alger.fun/d/ali/%E8%BD%AF%E4%BB%B6/AlgerMusic/AlgerMusic.exe',
|
||||
// };
|
||||
// // 根据操作系统选择下载链接
|
||||
// let downloadUrl = '';
|
||||
// if (isMac) {
|
||||
// downloadUrl = urls.mac;
|
||||
// } else if (isWindows) {
|
||||
// downloadUrl = urls.windows;
|
||||
// }
|
||||
const downloadUrl = 'https://github.com/algerkong/AlgerMusicPlayer/releases';
|
||||
if (downloadUrl) {
|
||||
window.open(downloadUrl, '_blank');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user