Merge branch 'upcoming' of https://github.com/ciderapp/Cider into upcoming
This commit is contained in:
commit
18f191128d
1 changed files with 1 additions and 3 deletions
|
@ -18,15 +18,13 @@
|
||||||
props: ["data"],
|
props: ["data"],
|
||||||
data: function(){
|
data: function(){
|
||||||
return {
|
return {
|
||||||
app : this.$root,
|
|
||||||
videos: [],
|
videos: [],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.$nextTick(async function () {
|
this.$nextTick(async function () {
|
||||||
if (this.$data.videos == null || this.$data.videos.length == 0)
|
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 ?? []
|
this.$data.videos = (await this.$root.mk.api.v3.music('/v1/me/library/music-videos')).data?.data ?? []
|
||||||
console.log(this.$data.videos.length > 0)
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue