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