import { IRoute } from 'umi' ; const Route = [ { layout : false , component : './login' , path : '/login' } , { path : '/' , redirect : '/home' } , { name : 'home' , icon : 'home' , path : '/home' , component : './home' } , { access : '/system' , path : '/system' , name : 'systemmanage' , icon : 'setting' , routes : [ { access : 'system/role' , name : 'rolemanage' , icon : 'solution' , path : '/system/role' , component : './system/role' } , { access : 'system/user' , name : 'usermanage' , icon : 'user' , path : '/system/user' , component : './system/user' } , { access : 'system/menu' , name : 'menumanage' , icon : 'menu' , path : '/system/menu' , component : './system/menu' } , { access : 'system/function' , name : 'functionmanage' , icon : 'menu' , path : '/system/function' , component : './system/function' } ] } ] ; export default Route ;