From 4c3e2ad968d9615b07427f793488a5d74adb7e18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Weller?= Date: Thu, 16 May 2019 11:47:17 +0200 Subject: [PATCH] fix checkReference --- components/Card.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/Card.vue b/components/Card.vue index 3c3ac4d..9339e8c 100644 --- a/components/Card.vue +++ b/components/Card.vue @@ -30,7 +30,8 @@ export default { }, computed: { checkReference(){ - if(typeof this.$route.query.card != undefined) { + if(this.$route.query.card) { + const query = this.$route.query.card const title = this.createReferenceTag(this.$props.title) console.log(query, title, title === query? 'card--active': '') @@ -39,7 +40,7 @@ export default { ? 'card--active' : '' } - }, + } }, }