mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-18 06:07:48 +00:00
fix: bugs
This commit is contained in:
parent
22c9691a73
commit
c506dea02b
18 changed files with 79 additions and 32 deletions
|
|
@ -206,6 +206,11 @@ export default {
|
|||
}
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
album: function () {
|
||||
this.$parent.$refs.main.scrollTo({ top: 0 });
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.loadData(this.$route.params.id);
|
||||
},
|
||||
|
|
|
|||
|
|
@ -261,18 +261,19 @@ export default {
|
|||
this.loadData(this.$route.params.id);
|
||||
},
|
||||
activated() {
|
||||
if (this.show) {
|
||||
if (this.artist.id.toString() !== this.$route.params.id) {
|
||||
this.show = false;
|
||||
NProgress.start();
|
||||
this.loadData(this.$route.params.id);
|
||||
}
|
||||
if (this.artist?.id?.toString() !== this.$route.params.id) {
|
||||
this.loadData(this.$route.params.id);
|
||||
} else {
|
||||
this.$parent.$refs.scrollbar.restorePosition();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
...mapMutations(['appendTrackToPlayerList']),
|
||||
...mapActions(['playFirstTrackOnList', 'playTrackOnListByID', 'showToast']),
|
||||
loadData(id, next = undefined) {
|
||||
NProgress.start();
|
||||
this.show = false;
|
||||
this.$parent.$refs.main.scrollTo({ top: 0 });
|
||||
getArtist(id).then(data => {
|
||||
this.artist = data.artist;
|
||||
this.popularTracks = data.hotSongs;
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ import { dailyRecommendTracks } from '@/api/playlist';
|
|||
import TrackList from '@/components/TrackList.vue';
|
||||
|
||||
export default {
|
||||
name: 'dailyTracks',
|
||||
name: 'DailyTracks',
|
||||
components: {
|
||||
TrackList,
|
||||
},
|
||||
|
|
@ -40,6 +40,7 @@ export default {
|
|||
} else {
|
||||
this.show = true;
|
||||
}
|
||||
this.$parent.$refs.main.scrollTo(0, 0);
|
||||
},
|
||||
methods: {
|
||||
...mapMutations(['updateDailyTracks']),
|
||||
|
|
|
|||
|
|
@ -117,6 +117,7 @@ export default {
|
|||
},
|
||||
activated() {
|
||||
this.loadData();
|
||||
this.$parent.$refs.scrollbar.restorePosition();
|
||||
},
|
||||
methods: {
|
||||
...mapMutations(['togglePlaylistCategory']),
|
||||
|
|
|
|||
|
|
@ -106,6 +106,7 @@ export default {
|
|||
},
|
||||
activated() {
|
||||
this.loadData();
|
||||
this.$parent.$refs.scrollbar.restorePosition();
|
||||
},
|
||||
methods: {
|
||||
loadData() {
|
||||
|
|
|
|||
|
|
@ -234,6 +234,7 @@ export default {
|
|||
this.loadData();
|
||||
},
|
||||
activated() {
|
||||
this.$parent.$refs.scrollbar.restorePosition();
|
||||
this.loadData();
|
||||
dailyTask();
|
||||
},
|
||||
|
|
|
|||
|
|
@ -267,7 +267,6 @@ export default {
|
|||
clearInterval(this.qrCodeCheckInterval);
|
||||
this.qrCodeInformation = '登录成功,请稍等...';
|
||||
result.code = 200;
|
||||
console.log(result);
|
||||
this.handleLoginResponse(result);
|
||||
}
|
||||
});
|
||||
|
|
@ -463,6 +462,7 @@ button.loading {
|
|||
margin-bottom: 12px;
|
||||
}
|
||||
.qr-code-info {
|
||||
color: var(--color-text);
|
||||
text-align: center;
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -218,7 +218,7 @@ export default {
|
|||
return this.player.currentTrack?.al?.picUrl + '?param=1024y1024';
|
||||
},
|
||||
bgImageUrl() {
|
||||
return this.player.currentTrack?.al?.picUrl + '?param=500y500';
|
||||
return this.player.currentTrack?.al?.picUrl + '?param=512y512';
|
||||
},
|
||||
lyricWithTranslation() {
|
||||
let ret = [];
|
||||
|
|
|
|||
|
|
@ -81,6 +81,7 @@ export default {
|
|||
},
|
||||
activated() {
|
||||
this.loadTracks();
|
||||
this.$parent.$refs.scrollbar.restorePosition();
|
||||
},
|
||||
methods: {
|
||||
...mapActions(['playTrackOnListByID']),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue