From 61303fde4d78585f5cec39a46ce9c84255286a24 Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Tue, 14 Jul 2020 22:51:20 +0200 Subject: [PATCH] bugfix tocitem --- src/components/Content/TocItem.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Content/TocItem.vue b/src/components/Content/TocItem.vue index b64c651..fc927ac 100644 --- a/src/components/Content/TocItem.vue +++ b/src/components/Content/TocItem.vue @@ -100,7 +100,9 @@ export default { // console.log('editionid', this.editionid) // }, beforeMount () { - this.isOpened = this.$route.params.textid.indexOf(this.item.uuid) >= 0 + if (typeof this.$route.params.textid !== 'undefined') { + this.isOpened = this.$route.params.textid.indexOf(this.item.uuid) >= 0 + } }, methods: { onclick (e) {