Merge branch 'upcoming' of https://github.com/ciderapp/Cider into upcoming

This commit is contained in:
Core 2022-01-28 17:32:24 +00:00
commit 18f191128d
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6

View file

@ -18,15 +18,13 @@
props: ["data"],
data: function(){
return {
app : this.$root,
videos: [],
}
},
mounted() {
this.$nextTick(async function () {
if (this.$data.videos == null || this.$data.videos.length == 0)
this.$data.videos = (await app.mk.api.v3.music('/v1/me/library/music-videos')).data?.data ?? []
console.log(this.$data.videos.length > 0)
this.$data.videos = (await this.$root.mk.api.v3.music('/v1/me/library/music-videos')).data?.data ?? []
})
}
})