druxt-menu 0.19.3 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -220,6 +220,14 @@ export default {
|
|
|
220
220
|
},
|
|
221
221
|
},
|
|
222
222
|
|
|
223
|
+
mounted() {
|
|
224
|
+
// If logged in and statically generated, re-fetch the menu.
|
|
225
|
+
if (this?.$auth?.loggedIn && this?.$store?.app?.context?.isStatic) {
|
|
226
|
+
const settings = this.$options.druxt.settings(this, this.component.settings)
|
|
227
|
+
this.$options.druxt.fetchData.call(this, settings)
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
|
|
223
231
|
methods: {
|
|
224
232
|
/**
|
|
225
233
|
* Recursively gets required menu items from the Vuex store.
|