fixed app title

This commit is contained in:
Sebastian Frank 2017-09-01 18:32:41 +02:00
parent 0f7a1b1f47
commit 0533437622
No known key found for this signature in database
GPG Key ID: DC2BC5C506EBF6F3

View File

@ -200,7 +200,7 @@ import(/* webpackChunkName: "views" */ './views/views.js').then(Views => {
}));
router.addRoutes(routes);
router.beforeEach((to, from, next) => {
document.title = (to.meta && to.meta.title) ? results.data.title + ': ' + to.meta.title : results.data.title;
document.title = (to.meta && to.meta.title) ? results.data.ui.title + ': ' + to.meta.title : results.data.title;
next();
});