Commit a90dea29 authored by Janis Streib's avatar Janis Streib 🦉
Browse files

ADD: overwrite_breadcrumbs event for special cases

parent 61aeedd2
......@@ -96,6 +96,12 @@ export default {
mounted() {
window.console.log('%c ', `font-size:0px; padding: 200px; background:url(${window.location.protocol}//${window.location.hostname}:${window.location.port}/important.webp) no-repeat; background-position: center; background-size: contain;`)
const self = this
EventBus.$on('overwrite_breadcrumbs', (payload) => {
let m = this.$router.currentRoute.matched
m = m[m.length - 1]
m.meta.resolveParents = payload
this.breadcrumbs = this.getBreadcrumbs(m)
})
EventBus.$on('error', (payload) => {
window.console.debug('evbus trigger')
window.console.debug(payload)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment