🐞 fix: 隐藏临时页面的路由
This commit is contained in:
@@ -91,6 +91,7 @@ export const constantRoutes = [
|
|||||||
path: '/temp',
|
path: '/temp',
|
||||||
component: () => import('@/views/temp'),
|
component: () => import('@/views/temp'),
|
||||||
name: 'Temp',
|
name: 'Temp',
|
||||||
|
hidden: true, // 隐藏路由
|
||||||
meta: { title: '临时页面', icon: 'dashboard', affix: true },
|
meta: { title: '临时页面', icon: 'dashboard', affix: true },
|
||||||
beforeEnter: (to, from, next) => {
|
beforeEnter: (to, from, next) => {
|
||||||
// 从本地存储获取角色信息
|
// 从本地存储获取角色信息
|
||||||
|
|||||||
Reference in New Issue
Block a user