fix checkReference

This commit is contained in:
André Weller
2019-05-16 11:47:17 +02:00
parent 2c501d80fa
commit 4c3e2ad968

View File

@@ -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'
: ''
}
},
}
},
}
</script>