diff --git a/front/src/App.vue b/front/src/App.vue index ac4a89e..e6e5721 100644 --- a/front/src/App.vue +++ b/front/src/App.vue @@ -46,14 +46,16 @@ export default { } }) - this.$router.afterEach((to) => { - this.$store.commit("setTopics", []); - this.$store.commit("setRules", []); - this.$store.commit("setCurStream", to.path.replace("/", "")); - if (this.currentStream != "" - && this.streams.find(s => s.name == this.currentStream) - ) { - this.setUpDoc(this.currentStream); + this.$router.afterEach((to, from) => { + if (to.path !== from.path) { + this.$store.commit("setTopics", []); + this.$store.commit("setRules", []); + this.$store.commit("setCurStream", to.path.replace("/", "")); + if (this.currentStream != "" + && this.streams.find(s => s.name == this.currentStream) + ) { + this.setUpDoc(this.currentStream); + } } }); }, diff --git a/front/src/components/Content/Chapter.vue b/front/src/components/Content/Chapter.vue index 45ecbfd..32c1d89 100644 --- a/front/src/components/Content/Chapter.vue +++ b/front/src/components/Content/Chapter.vue @@ -1,10 +1,9 @@