|  | @@ -194,6 +194,17 @@ export let moreRoutes = [
 | 
	
		
			
				|  |  |    //   ]
 | 
	
		
			
				|  |  |    // },
 | 
	
		
			
				|  |  |  ]
 | 
	
		
			
				|  |  | +function formatStr (str) {
 | 
	
		
			
				|  |  | +  let newStr = ''
 | 
	
		
			
				|  |  | +  str.slice(1).split('/').map((item, i) => {
 | 
	
		
			
				|  |  | +    if (i > 0) {
 | 
	
		
			
				|  |  | +      newStr += item.slice(0, 1).toUpperCase() + item.slice(1)
 | 
	
		
			
				|  |  | +    } else {
 | 
	
		
			
				|  |  | +      newStr += item
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +  })
 | 
	
		
			
				|  |  | +  return newStr
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  |  const fpUser = window.sessionStorage.getItem('fp_user') ? JSON.parse(window.sessionStorage.getItem('fp_user')) : {}
 | 
	
		
			
				|  |  |  if (fpUser.username === 'admin') {
 | 
	
		
			
				|  |  |    moreRoutes.push({
 | 
	
	
		
			
				|  | @@ -239,7 +250,7 @@ function formateMenu (arr) {
 | 
	
		
			
				|  |  |      if (item.perm_type === '1' || item.perm_type === '2') {
 | 
	
		
			
				|  |  |        let cObj = {
 | 
	
		
			
				|  |  |          path: item.path,
 | 
	
		
			
				|  |  | -        name: item.path,
 | 
	
		
			
				|  |  | +        name: formatStr(item.path),
 | 
	
		
			
				|  |  |          component: resolve => require([`@/views${item.path}`], resolve),
 | 
	
		
			
				|  |  |          meta: { title: item.name },
 | 
	
		
			
				|  |  |        }
 | 
	
	
		
			
				|  | @@ -262,6 +273,7 @@ const getMenu = () => {
 | 
	
		
			
				|  |  |      let cObj = {
 | 
	
		
			
				|  |  |        path: item.path,
 | 
	
		
			
				|  |  |        component: Layout,
 | 
	
		
			
				|  |  | +      name: formatStr(item.path),
 | 
	
		
			
				|  |  |        meta: { title: item.name, icon: 'dashboard' },
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |      if (item.children && item.children.length > 0) {
 | 
	
	
		
			
				|  | @@ -271,7 +283,7 @@ const getMenu = () => {
 | 
	
		
			
				|  |  |        cObj.children = [
 | 
	
		
			
				|  |  |          {
 | 
	
		
			
				|  |  |            path: item.path,
 | 
	
		
			
				|  |  | -          name: item.path,
 | 
	
		
			
				|  |  | +          name: formatStr(item.path),
 | 
	
		
			
				|  |  |            component: resolve => require([`@/views${item.path}`], resolve),
 | 
	
		
			
				|  |  |            meta: { title: item.name },
 | 
	
		
			
				|  |  |            // , affix: true
 | 
	
	
		
			
				|  | @@ -283,6 +295,7 @@ const getMenu = () => {
 | 
	
		
			
				|  |  |    })
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  getMenu()
 | 
	
		
			
				|  |  | +console.log(asyncRoutes)
 | 
	
		
			
				|  |  |  export const constantRoutes = [
 | 
	
		
			
				|  |  |    {
 | 
	
		
			
				|  |  |      path: '/login',
 |