diff --git a/src/components/cards/CardItem.vue b/src/components/cards/CardItem.vue index 331798f0a..c45b19bdb 100644 --- a/src/components/cards/CardItem.vue +++ b/src/components/cards/CardItem.vue @@ -100,8 +100,7 @@ export default { } }, currentCard() { - console.log(this.$route.params) - return this.$route.params.cardId == this.id + return this.$route.params.cardId === this.id } }, methods: { diff --git a/src/router.js b/src/router.js index e9d7cb60a..84ac149cb 100644 --- a/src/router.js +++ b/src/router.js @@ -107,6 +107,11 @@ export default new Router({ sidebar: CardSidebar }, props: { + default: (route) => { + return { + cardId: parseInt(route.params.cardId, 10) + } + }, sidebar: (route) => { return { id: parseInt(route.params.cardId, 10)