mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-05-16 01:17:29 +08:00
✨ feat: 优化更新检查 下载 功能
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user