From ad837203632c50760f34986e3be5b44079133547 Mon Sep 17 00:00:00 2001 From: Haidar Afif Maulana Date: Wed, 28 Mar 2018 11:36:07 +0700 Subject: [PATCH] Fix last error --- src/App.vue | 2 +- src/components/Detail.vue | 6 ++---- src/components/Home.vue | 13 ++++++------- src/components/Post.vue | 16 ++++++++-------- src/main.js | 2 +- 5 files changed, 18 insertions(+), 21 deletions(-) diff --git a/src/App.vue b/src/App.vue index 3fc571b1..31348b37 100644 --- a/src/App.vue +++ b/src/App.vue @@ -45,7 +45,7 @@ export default { this.$refs.leftSidenav.toggle() } else { this.$refs.leftSidenav.toggle() - this.router.push(route) + this.$router.push(route) } } } diff --git a/src/components/Detail.vue b/src/components/Detail.vue index 78e95be0..e7391ac1 100644 --- a/src/components/Detail.vue +++ b/src/components/Detail.vue @@ -5,11 +5,9 @@
{{ cat.comment }}
- - {{ cat.detail }} @@ -23,9 +21,9 @@ export default { return { cat: { asObject: true, - source: this.$db.ref('cats').child(this.id), + source: this.$db.ref('cats').child(this.id) } - }, + } } } diff --git a/src/components/Home.vue b/src/components/Home.vue index 55fd35fc..d91bec6d 100644 --- a/src/components/Home.vue +++ b/src/components/Home.vue @@ -3,15 +3,14 @@

Home

- +
{{ cat.comment }}
- - + Details @@ -22,13 +21,13 @@