From 9ce7d7dab1695c014df830929446b9b38faa45bb Mon Sep 17 00:00:00 2001 From: bestlee Date: Fri, 13 Nov 2026 09:40:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=82=E5=B8=B8=E5=B7=A5=E5=86=B5=E6=8E=A8?= =?UTF-8?q?=E9=80=81=E9=A1=B5=E9=9D=A2=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/router/index.js b/src/router/index.js index f32914c..b6b0647 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -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