fix reload problem

Signed-off-by: Jakob <jakob.roehrl@web.de>
This commit is contained in:
Jakob
2019-08-30 09:12:15 +02:00
committed by Julius Härtl
parent 1d8b4cd33d
commit 283aa01fd4
2 changed files with 6 additions and 2 deletions

View File

@@ -100,8 +100,7 @@ export default {
} }
}, },
currentCard() { currentCard() {
console.log(this.$route.params) return this.$route.params.cardId === this.id
return this.$route.params.cardId == this.id
} }
}, },
methods: { methods: {

View File

@@ -107,6 +107,11 @@ export default new Router({
sidebar: CardSidebar sidebar: CardSidebar
}, },
props: { props: {
default: (route) => {
return {
cardId: parseInt(route.params.cardId, 10)
}
},
sidebar: (route) => { sidebar: (route) => {
return { return {
id: parseInt(route.params.cardId, 10) id: parseInt(route.params.cardId, 10)