Bachir Soussi Chiadmi преди 4 години
родител
ревизия
61303fde4d
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      src/components/Content/TocItem.vue

+ 3 - 1
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) {