From e1557a51a374b5459253ca2d9a74123ca9fff4f2 Mon Sep 17 00:00:00 2001 From: alger Date: Mon, 16 Dec 2024 20:40:57 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=E4=BC=98=E5=8C=96=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E5=BA=94=E7=94=A8=E5=8A=9F=E8=83=BD=20=20=20=E5=8E=BB?= =?UTF-8?q?=E9=99=A4web=20=E7=AA=97=E5=8F=A3=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/InstallAppModal.vue | 19 +++- src/layout/AppLayout.vue | 108 +--------------------- 2 files changed, 17 insertions(+), 110 deletions(-) diff --git a/src/components/common/InstallAppModal.vue b/src/components/common/InstallAppModal.vue index 97f2da8..996bd09 100644 --- a/src/components/common/InstallAppModal.vue +++ b/src/components/common/InstallAppModal.vue @@ -15,6 +15,15 @@ 暂不安装 立即安装 + @@ -62,9 +71,9 @@ const handleInstall = async (): Promise => { const getDownloadUrl = (os: string, arch: string): string => { const version = config.version as string; - return `https://github.com/algerkong/AlgerMusicPlayer/releases/download/${version}/AlgerMusic_${version}_${arch}.${os === 'mac' ? 'dmg' : 'exe'}`; + const setup = os !== 'mac' ? 'Setup_' : ''; + return `https://gh.llkk.cc/https://github.com/algerkong/AlgerMusicPlayer/releases/download/${version}/AlgerMusic_${version}_${setup}${arch}.${os === 'mac' ? 'dmg' : 'exe'}`; }; - const osType: string | null = isMac ? 'mac' : isWindows ? 'windows' : null; const archType: string | null = isARM ? 'arm64' : isX64 ? 'x64' : isX86 ? 'x86' : null; @@ -80,11 +89,11 @@ const handleInstall = async (): Promise => { @apply max-w-sm; } .modal-content { - @apply p-4; + @apply p-4 pb-0; .modal-header { @apply flex items-center mb-6; .app-icon { - @apply w-16 h-16 mr-4 rounded-2xl overflow-hidden; + @apply w-20 h-20 mr-4 rounded-2xl overflow-hidden; img { @apply w-full h-full object-cover; } @@ -100,7 +109,7 @@ const handleInstall = async (): Promise => { } } .modal-actions { - @apply flex gap-3; + @apply flex gap-3 mt-4; .n-button { @apply flex-1; } diff --git a/src/layout/AppLayout.vue b/src/layout/AppLayout.vue index cbd4850..0f88c04 100644 --- a/src/layout/AppLayout.vue +++ b/src/layout/AppLayout.vue @@ -1,23 +1,8 @@