feat: 优化更新检查 下载 功能

This commit is contained in:
alger
2025-01-04 16:13:37 +08:00
parent 3d3992154a
commit 11ced6b418
6 changed files with 91 additions and 26 deletions
+1 -1
View File
@@ -28,7 +28,7 @@
<play-bar v-if="isPlay" :style="isMobile && store.state.musicFull ? 'bottom: 0;' : ''" />
</div>
<install-app-modal v-if="!isElectron"></install-app-modal>
<update-modal />
<update-modal v-if="isElectron"/>
</div>
</template>
+1 -1
View File
@@ -237,7 +237,7 @@ const checkForUpdates = async () => {
const toGithubRelease = () => {
if (updateInfo.value.hasUpdate) {
window.open(updateInfo.value.releaseInfo?.html_url || 'https://github.com/algerkong/AlgerMusicPlayer/releases/latest', '_blank');
store.commit('SET_SHOW_UPDATE_MODAL', true)
} else {
window.open('https://github.com/algerkong/AlgerMusicPlayer/releases', '_blank');
}