fix missing error messages

This commit is contained in:
Thomas Amland 2021-04-25 18:19:45 +02:00
parent 28dfdb82c1
commit a98e5ab486
4 changed files with 7 additions and 13 deletions

View File

@ -69,7 +69,7 @@
album: null as null | Album, album: null as null | Album,
} }
}, },
async mounted() { async created() {
this.album = await this.$api.getAlbumDetails(this.id) this.album = await this.$api.getAlbumDetails(this.id)
}, },
methods: { methods: {

View File

@ -17,10 +17,8 @@
items: null as null | Artist[] items: null as null | Artist[]
} }
}, },
created() { async created() {
this.$api.getArtists().then(items => { this.items = await this.$api.getArtists()
this.items = items
})
} }
}) })
</script> </script>

View File

@ -20,10 +20,8 @@
items: [], items: [],
} }
}, },
created() { async created() {
this.$api.getGenres().then((items) => { this.items = await this.$api.getGenres()
this.items = items
})
}, },
}) })
</script> </script>

View File

@ -31,10 +31,8 @@
result: null as any, result: null as any,
} }
}, },
created() { async created() {
this.$api.getStarred().then(result => { this.result = await this.$api.getStarred()
this.result = result
})
} }
}) })
</script> </script>