7 lines
234 B
JavaScript
7 lines
234 B
JavaScript
export default ({ route, store }) => {
|
|
// Take the last value (latest route child)
|
|
console.log(route.meta);
|
|
const title = route.meta.reduce((title, meta) => meta.title || title, 'Damillora')
|
|
store.commit('SET_TITLE', title)
|
|
}
|