异常工况推送页面添加
This commit is contained in:
@@ -10,11 +10,13 @@ const constantRoutes = [
|
||||
path: '/login',
|
||||
name: 'login',
|
||||
component: () => import('../views/login/index.vue'),
|
||||
meta: { title: '登录' },
|
||||
},
|
||||
{
|
||||
path: '/404',
|
||||
name: 'NotFound',
|
||||
component: () => import('../views/error/404.vue'),
|
||||
meta: { title: '页面不存在' },
|
||||
},
|
||||
];
|
||||
|
||||
@@ -31,24 +33,35 @@ const asyncRoutes = [
|
||||
path: '/applyList',
|
||||
name: 'applyList',
|
||||
component: () => import('../views/applyList/index.vue'),
|
||||
meta: { title: '已审批列表' },
|
||||
},
|
||||
// 详情
|
||||
{
|
||||
path: '/detail',
|
||||
name: 'detail',
|
||||
component: () => import('../views/applyList/detail.vue'),
|
||||
meta: { title: '申请详情' },
|
||||
},
|
||||
// 联锁详情
|
||||
{
|
||||
path: '/lockDetail',
|
||||
name: 'lockDetail',
|
||||
component: () => import('../views/applyList/lockDetail.vue'),
|
||||
meta: { title: '联锁详情' },
|
||||
},
|
||||
// 待审批列表
|
||||
{
|
||||
path: '/waitList',
|
||||
name: 'waitList',
|
||||
component: () => import('../views/applyList/waitList.vue'),
|
||||
meta: { title: '待审批列表' },
|
||||
},
|
||||
// 异常工况模块:异常工况推送
|
||||
{
|
||||
path: '/abnormal',
|
||||
name: 'abnormalInbox',
|
||||
component: () => import('../views/abnormal/PushInbox.vue'),
|
||||
meta: { title: '异常工况推送' },
|
||||
},
|
||||
]
|
||||
|
||||
@@ -81,4 +94,9 @@ router.beforeEach((to, from, next) => {
|
||||
}
|
||||
})
|
||||
|
||||
// 浏览器标签页标题跟随路由 meta.title
|
||||
router.afterEach((to) => {
|
||||
document.title = to.meta?.title || '审批移动端'
|
||||
})
|
||||
|
||||
export default router
|
||||
|
||||
Reference in New Issue
Block a user