From 927f80436eb213129ec99e8f9f102f2b8a6fe1f3 Mon Sep 17 00:00:00 2001 From: Haydon Curteis-Lateo Date: Fri, 4 Oct 2019 14:24:32 +0100 Subject: [PATCH] Necessary problems fixed --- pages/_category.vue | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/pages/_category.vue b/pages/_category.vue index 0ae701d..cbbf4f5 100644 --- a/pages/_category.vue +++ b/pages/_category.vue @@ -25,7 +25,7 @@ export default { activeCard: '', showTitle: false, showCards: false, - }; + } }, computed: { areCardsVisible() { @@ -38,6 +38,9 @@ export default { created() { this.activeCard = this.$route.query.card || '' }, + mounted() { + this.showTitle = true + }, methods: { setActiveCard(index) { this.activeCard = index @@ -52,15 +55,9 @@ export default { console.error(e) } }, - afterEnter(el) { - this.showCards = true; - } - }, - mounted() { - this.showTitle = true; - }, - created() { - this.activeCard = this.$route.query.card || '' + afterEnter() { + this.showCards = true + }, }, }