| | |
| | | const NotFound = asyncComponent(() => import('@/views/404')) |
| | | const MobManage = asyncLoadComponent(() => import('@/views/mobmanage')) |
| | | const MobDesign = asyncLoadComponent(() => import('@/views/mobdesign')) |
| | | const MenuDesign = asyncLoadComponent(() => import('@/views/menudesign')) |
| | | const PrintT = asyncLoadComponent(() => import('@/views/printTemplate')) |
| | | |
| | | const routers = [ |
| | |
| | | {path: '/main', name: 'main', component: Main, auth: true}, |
| | | {path: '/mobmanage', name: 'mobmanage', component: MobManage, auth: true}, |
| | | {path: '/mobdesign/:appId/:appType/:appCode/:appName', name: 'mobdesign', component: MobDesign, auth: true}, |
| | | {path: '/menudesign/:MenuId/:ParentId/:MenuName/:MenuNo', name: 'menudesign', component: MenuDesign, auth: true}, |
| | | {path: '/main/:param', name: 'pmain', component: Main, auth: true} |
| | | ] |
| | | |
| | | export default class RouteConfig extends Component { |
| | | controlRoute (item, props) { |
| | | if (!item.auth) { // 不需要授权,直接跳转(登录页) |
| | | if (!item.auth) { // 不需要授权,直接跳转(登录页) |
| | | return (<item.component {...props}/>) |
| | | } |
| | | |