From 237639564d47303c5c348eda5e4330598476d910 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Weller?= Date: Sat, 15 Jun 2019 01:03:24 +0200 Subject: [PATCH] try without query check --- components/Card.vue | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/components/Card.vue b/components/Card.vue index ab9d03d..eeb37e9 100644 --- a/components/Card.vue +++ b/components/Card.vue @@ -32,14 +32,13 @@ export default { return tag.replace(/ /g, '').toLowerCase() }, checkReference(){ - if(this.$route.query.card) { - const query = this.$route.query.card - const title = this.createReferenceTag(this.$props.title) + const query = this.$route.query.card + const title = this.createReferenceTag(this.$props.title) + + this.active = title === query + ? 'card--active' + : '' - this.active = title === query - ? 'card--active' - : '' - } }, }, mounted() {