From c506dea02b7bb250b81943f15295e1835f4bac2e Mon Sep 17 00:00:00 2001 From: qier222 Date: Tue, 8 Jun 2021 00:09:30 +0800 Subject: [PATCH] fix: bugs --- src/background.js | 1 + src/components/CoverRow.vue | 2 +- src/components/FMCard.vue | 17 +++++++++++++++-- src/components/Player.vue | 6 +++--- src/components/Scrollbar.vue | 19 +++++++++++++++++++ src/components/TrackListItem.vue | 11 ++++------- src/router/index.js | 17 +++++++---------- src/utils/Player.js | 2 ++ src/utils/db.js | 7 +++++++ src/views/album.vue | 5 +++++ src/views/artist.vue | 13 +++++++------ src/views/dailyTracks.vue | 3 ++- src/views/explore.vue | 1 + src/views/home.vue | 1 + src/views/library.vue | 1 + src/views/loginAccount.vue | 2 +- src/views/lyrics.vue | 2 +- src/views/next.vue | 1 + 18 files changed, 79 insertions(+), 32 deletions(-) diff --git a/src/background.js b/src/background.js index bd90e18..1d0ca8a 100644 --- a/src/background.js +++ b/src/background.js @@ -231,6 +231,7 @@ class Background { } checkForUpdates() { + if (process.env.NODE_ENV === 'development') return; log('checkForUpdates'); autoUpdater.checkForUpdatesAndNotify(); diff --git a/src/components/CoverRow.vue b/src/components/CoverRow.vue index 3eeb398..d0e2163 100644 --- a/src/components/CoverRow.vue +++ b/src/components/CoverRow.vue @@ -111,7 +111,7 @@ export default { } } let img = item.img1v1Url || item.picUrl || item.coverImgUrl; - return `${img}?param=512y512`; + return `${img?.replace('http://', 'https://')}?param=512y512`; }, }, }; diff --git a/src/components/FMCard.vue b/src/components/FMCard.vue index ba0cd59..377bbe7 100644 --- a/src/components/FMCard.vue +++ b/src/components/FMCard.vue @@ -1,5 +1,6 @@