- 在管理菜单中添加数据大屏选项,使用FundViewOutlined图标 - 添加数据大屏路由配置,路径为/big - 设置数据大屏访问权限为dashboard:view
@@ -88,6 +88,13 @@ export const useMenu = () => {
icon: <DashboardOutlined />,
path: '/admin/dashboard'
},
+ {
+ key: 'big',
+ label: '数据大屏',
+ icon: <FundViewOutlined />,
+ path: '/big',
+ permission: 'dashboard:view'
+ },
{
key: 'users',
label: '用户管理',
@@ -24,6 +24,11 @@ export const router = createBrowserRouter([
path: '/',
element: <Navigate to="/admin" replace />
+ element: <BigScreenDashboard />,
+ errorElement: <ErrorPage />
path: '/admin/login',
element: <LoginPage />