🐞 fix: 隐藏临时页面的路由

This commit is contained in:
2025-03-07 14:46:49 +08:00
parent 05b23ef162
commit f78b3dda14

View File

@@ -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) => {
// 从本地存储获取角色信息