| | |
| | | |
| | | let toMenu = findRouteByPath(newMenu, to.path) |
| | | |
| | | store.commit('ADD_TAG', { |
| | | name: firstMenu.name, |
| | | path: firstMenu.path, |
| | | fullPath: firstMenu.path, |
| | | params: firstMenu.params || {}, |
| | | query: firstMenu.query || {}, |
| | | meta: firstMenu.meta || {}, |
| | | }) |
| | | // store.commit('ADD_TAG', { |
| | | // name: firstMenu.name, |
| | | // path: firstMenu.path, |
| | | // fullPath: firstMenu.path, |
| | | // params: firstMenu.params || {}, |
| | | // query: firstMenu.query || {}, |
| | | // meta: firstMenu.meta || {}, |
| | | // }) |
| | | store.commit('ADD_TAG', { |
| | | name: toMenu.name, |
| | | path: toMenu.path, |
| | |
| | | NProgress.done() |
| | | const isLoginPage = to.path === '/login' |
| | | // 根据是否登录页设置标题 |
| | | const pageTitle = isLoginPage ? '中图智飞低空感知网平台' : '综合管理平台' |
| | | const pageTitle = isLoginPage ? '任务工单平台' : '综合管理平台' |
| | | document.title = pageTitle |
| | | store.commit('SET_IS_SEARCH', false) |
| | | }) |