try without query check

This commit is contained in:
André Weller
2019-06-15 01:03:24 +02:00
parent a4573342c4
commit 237639564d

View File

@@ -32,14 +32,13 @@ export default {
return tag.replace(/ /g, '').toLowerCase() return tag.replace(/ /g, '').toLowerCase()
}, },
checkReference(){ checkReference(){
if(this.$route.query.card) { const query = this.$route.query.card
const query = this.$route.query.card const title = this.createReferenceTag(this.$props.title)
const title = this.createReferenceTag(this.$props.title)
this.active = title === query
? 'card--active'
: ''
this.active = title === query
? 'card--active'
: ''
}
}, },
}, },
mounted() { mounted() {