mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 21:58:03 +00:00
fix: 相似歌手接口需要登录;未登录获取艺人热门歌曲没有图片 (#2286)
This commit is contained in:
parent
df82c7cd22
commit
481ba6bce3
3 changed files with 21 additions and 8 deletions
|
|
@ -292,9 +292,11 @@ export default {
|
|||
this.mvs = data.mvs;
|
||||
this.hasMoreMV = data.hasMore;
|
||||
});
|
||||
similarArtists(id).then(data => {
|
||||
this.similarArtists = data.artists;
|
||||
});
|
||||
if (isAccountLoggedIn()) {
|
||||
similarArtists(id).then(data => {
|
||||
this.similarArtists = data.artists;
|
||||
});
|
||||
}
|
||||
},
|
||||
setPopularTracks(hotSongs) {
|
||||
const trackIDs = hotSongs.map(t => t.id);
|
||||
|
|
|
|||
|
|
@ -120,10 +120,13 @@ export default {
|
|||
setTimeout(() => {
|
||||
if (!this.show) NProgress.start();
|
||||
}, 1000);
|
||||
this.activeCategory =
|
||||
this.$route.query.category === undefined
|
||||
? '全部'
|
||||
: this.$route.query.category;
|
||||
const queryCategory = this.$route.query.category;
|
||||
if (queryCategory === undefined) {
|
||||
this.playlists = [];
|
||||
this.activeCategory = '全部';
|
||||
} else {
|
||||
this.activeCategory = queryCategory;
|
||||
}
|
||||
this.getPlaylist();
|
||||
},
|
||||
goToCategory(Category) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue