| | |
| | | // '0'代表false,'1'代表true |
| | | const routes = [ |
| | | { |
| | | path: '/redirect', |
| | | component: 'Layout', |
| | | hidden: '1', |
| | | children: [ |
| | | { |
| | | path: '/redirect/:path(.*)', |
| | | component: '/redirect/index' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | path: '/', |
| | | component: 'Layout', |
| | | redirect: '/index', |
| | |
| | | component: '/xtsy/index', |
| | | meta: { title: '系统首页', icon: 'el-icon-house', affix: '1' } |
| | | }] |
| | | }, |
| | | { |
| | | path: '/redirect', |
| | | component: 'Layout', |
| | | hidden: '1', |
| | | children: [ |
| | | { |
| | | path: '/redirect/:path(.*)', |
| | | component: '/redirect/index' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | path: '/jcsz', |
| | |
| | | asyncRoutes.push({ path: '*', redirect: '/404', hidden: true }) |
| | | commit('SET_ROUTES', asyncRoutes) |
| | | resolve(asyncRoutes) |
| | | console.log(asyncRoutes, 1) |
| | | }) |
| | | } |
| | | } |