From 4aadaf143460696ddbd5298f32b5b868c1a2abd5 Mon Sep 17 00:00:00 2001 From: vol4tim Date: Tue, 12 Mar 2024 11:17:32 +0400 Subject: [PATCH] rerender header --- src/components/Header.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/components/Header.vue b/src/components/Header.vue index d79efb2..96e5d9f 100644 --- a/src/components/Header.vue +++ b/src/components/Header.vue @@ -4,6 +4,7 @@ :navigation="navigation" :title="title" :version="version" + v-if="renderComponent" /> @@ -22,6 +23,7 @@ export default { inject: ["RobonomicsProvider"], data() { return { + renderComponent: true, navigation: [ { title: "Other", @@ -121,6 +123,11 @@ export default { } }, immediate: true + }, + $route: async function () { + this.renderComponent = false; + await this.$nextTick(); + this.renderComponent = true; } }, async created() {