Skip to content

Commit

Permalink
rerender header
Browse files Browse the repository at this point in the history
  • Loading branch information
vol4tim committed Mar 12, 2024
1 parent 59cee6d commit 4aadaf1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
:navigation="navigation"
:title="title"
:version="version"
v-if="renderComponent"
/>
</template>

Expand All @@ -22,6 +23,7 @@ export default {
inject: ["RobonomicsProvider"],
data() {
return {
renderComponent: true,
navigation: [
{
title: "Other",
Expand Down Expand Up @@ -121,6 +123,11 @@ export default {
}
},
immediate: true
},
$route: async function () {
this.renderComponent = false;
await this.$nextTick();
this.renderComponent = true;
}
},
async created() {
Expand Down

0 comments on commit 4aadaf1

Please sign in to comment.