diff --git a/ruoyi-ui/src/router/index.js b/ruoyi-ui/src/router/index.js index f314430..1c70b6e 100644 --- a/ruoyi-ui/src/router/index.js +++ b/ruoyi-ui/src/router/index.js @@ -91,6 +91,7 @@ export const constantRoutes = [ path: '/temp', component: () => import('@/views/temp'), name: 'Temp', + hidden: true, // 隐藏路由 meta: { title: '临时页面', icon: 'dashboard', affix: true }, beforeEnter: (to, from, next) => { // 从本地存储获取角色信息