You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
2.5 KiB

7 months ago
import { layout } from '../src/app';
/**
8 months ago
* @name umi
* @description path,component,routes,redirect,wrappers,name,icon
* @param path path 第一种是动态参数 :id *
* @param component location path React src/pages
* @param routes layout 使
* @param redirect
* @param wrappers
* @param name menu.ts menu.xxxx name login menu.ts menu.login
* @param icon https://ant.design/components/icon-cn, 注意去除风格后缀和大小写,如想要配置图标为 <StepBackwardOutlined /> 则取值应为 stepBackward 或 StepBackward,如想要配置图标为 <UserOutlined /> 则取值应为 user 或者 User
* @doc https://umijs.org/docs/guides/routes
*/
export default [
{
path: '/user',
layout: false,
routes: [
{
name: 'login',
path: '/user/login',
component: './User/Login',
},
],
},
7 months ago
{
path: '/welcome',
name: '欢迎',
icon: 'smile',
component: './Welcome',
},
8 months ago
{
path: '/overview',
name: '数据概览',
icon: 'dashboard',
7 months ago
access: 'canAdmin',
8 months ago
component: './Overview',
},
8 months ago
{
path: '/advList',
name: '广告列表',
icon: 'smile',
7 months ago
access: 'canAdmin',
8 months ago
component: './AdvRecordList',
},
7 months ago
{
path: '/appList',
name: '应用列表',
icon: 'smile',
access: 'canDeviceOwner',
component: './DeviceOwnerApp',
},
8 months ago
{
8 months ago
path: '/adminList',
name: '人员管理',
8 months ago
access: 'canAdmin',
8 months ago
component: './AdminManagement'
8 months ago
},
7 months ago
{
path: '/bind',
name: '绑定设备',
access: 'canDeviceOwner',
component: './Bind'
},
{
path: '/appManage',
name: '应用管理',
access: 'canAdmin',
component: './AppManagement'
},
8 months ago
{
path: '/',
7 months ago
redirect: '/welcome',
8 months ago
},
{
path: '*',
layout: false,
component: './404',
},
];