We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8fb4f0 commit 4093647Copy full SHA for 4093647
src/.vuepress/theme/layouts/Layout.vue
@@ -134,18 +134,16 @@ export default {
134
}
135
},
136
137
- beforeMount() {
138
- this.isBannerOpen = !localStorage.getItem(this.nameStorage)
139
- },
140
-
141
mounted() {
142
this.$router.afterEach(() => {
143
this.isSidebarOpen = false
144
})
145
+ this.isBannerOpen = !localStorage.getItem(this.nameStorage)
+
146
// Load component according to user preferences
147
if (this.isBannerOpen) {
148
- this.initBanner()
+ this.$nextTick(this.initBanner)
149
150
151
0 commit comments