diff --git a/src/App.vue b/src/App.vue index e42cf6f..3af24a5 100644 --- a/src/App.vue +++ b/src/App.vue @@ -49,11 +49,16 @@ export default { tableData: undefined, }), mounted() { - const vm = this - this.$jquery.getJSON('https://de1.api.radio-browser.info/json/stations/topclick?limit=20') - .done(function(data) { - vm.tableData = data - }) + this.loadStations() + }, + methods: { + loadStations() { + const vm = this + this.$jquery.getJSON('https://de1.api.radio-browser.info/json/stations/topclick?limit=20') + .done(function(data) { + vm.tableData = data + }) + }, }, } diff --git a/src/components/Table/Table.vue b/src/components/Table/Table.vue index b649b80..b31f660 100644 --- a/src/components/Table/Table.vue +++ b/src/components/Table/Table.vue @@ -10,14 +10,14 @@ - +
+ :style="{ backgroundImage: `url('${ station.favicon }')` }" /> - {{ obj.name }} + {{ station.name }}