Skip to content

Commit 34858db

Browse files
陈鑫陈鑫
authored andcommitted
代码优化
1 parent 2c6952f commit 34858db

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/router/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,8 @@ const router = createRouter({
66
routes: [mainRoutes].concat(baseRoutes)
77
})
88

9+
router.beforeEach((to, from, next) => {
10+
next()
11+
})
12+
913
export default router

src/router/router.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const Routes: Array<RouteRecordRaw> = [
3232
name: 'fault',
3333
component: () => import(/* webpackChunkName: "fault" */ '@/views/eoms/fault'),
3434
meta: { title: '故障处理方案', hidden: false },
35+
3536
},
3637
{
3738
path: "/eoms/alarm",

0 commit comments

Comments
 (0)