add some stuff to home page

This commit is contained in:
Thomas Amland
2020-07-27 14:29:27 +02:00
parent d46ba950e7
commit 7ec1cac749
3 changed files with 58 additions and 4 deletions
+2 -1
View File
@@ -19,6 +19,7 @@
<script lang="ts">
import Vue from "vue";
import AlbumCard from "./AlbumCard.vue";
import { AlbumSort } from '@/shared/api';
export default Vue.extend({
components: {
@@ -48,7 +49,7 @@ export default Vue.extend({
watch: {
sort: {
immediate: true,
handler(value: string) {
handler(value: AlbumSort) {
this.albums = null;
this.$api.getAlbums(value).then(albums => {
this.albums = albums;