|
@@ -105,9 +105,9 @@ const routerBefore = function (router, constantRouterMap) {
|
|
store.commit('breadcrumb', breadcrumbFn(to, store.state.routes));
|
|
store.commit('breadcrumb', breadcrumbFn(to, store.state.routes));
|
|
// 标题
|
|
// 标题
|
|
if (to.meta && !to.meta.title) {
|
|
if (to.meta && !to.meta.title) {
|
|
- // document.title = titleFn(to, store.state.routes) + ' ' + document.title.substr(document.title.indexOf('-'));
|
|
|
|
|
|
+ document.title = titleFn(to, store.state.routes) + ' ' + document.title.substr(document.title.indexOf('-'));
|
|
} else {
|
|
} else {
|
|
- // document.title = to.meta.title + ' ' + document.title.substr(document.title.indexOf('-'));
|
|
|
|
|
|
+ document.title = to.meta.title + ' ' + document.title.substr(document.title.indexOf('-'));
|
|
}
|
|
}
|
|
if (to.query.ticket) {
|
|
if (to.query.ticket) {
|
|
setCookie('ticket', to.query.ticket, '', '/');
|
|
setCookie('ticket', to.query.ticket, '', '/');
|