import Vue from 'vue' import VueRouter from 'vue-router' import { getEnvInfo } from '@/utils/utils' Vue.use(VueRouter) // 访问web前缀 const { webPrefix } = getEnvInfo() const routes = [ { path: '/', redirect: '/comm' }, { path: '/comm', component: () => import('@/pages/CommView'), children: [ { path: 'apply', component: () => import('@/pages/Apply') }, { path: 'applyForPaymentRouing', component: () => import('@/pages/ApplyForPaymentRouing') }, { path: 'loanInstitutions', component: () => import('@/pages/loanInstitutions/Index'), meta: { title: '贷款机构管理', keepAlive: true } }, { path: 'paymentRoutingManagement', component: () => import('@/pages/paymentRoutingManagement/Index'), meta: { title: '资金路由管理', keepAlive: true } }, { path: 'loanInstitutionsQuery', component: () => import('@/pages/loanInstitutionsQuery/Index'), meta: { title: '贷款机构查询', keepAlive: true } }, { path: 'loanInstitutionsAudit', component: () => import('@/pages/loanInstitutionsAudit/Index'), meta: { title: '贷款机构管理审核', keepAlive: true } }, { path: 'LoadIndex', component: () => import('@/pages/taskAdjustment/LoadIndex'), meta: { title: '贷款机构任务调整', keepAlive: true } }, { path: 'repaymentPlan', component: () => import('@/pages/RepaymentPlan/Index'), meta: { title: '还款计划查询', keepAlive: true } }, { path: 'applyBottomPocket', component: () => import('@/pages/ApplyBottomPocket') }, { path: 'bottomPocket', component: () => import('@/pages/bottomPocket/Index'), meta: { title: '兜底机构申请', keepAlive: true } }, { path: 'bottomPocketAudit', component: () => import('@/pages/bottomPocketAudit/Index'), meta: { title: '兜底机构审核', keepAlive: true } }, { path: 'PocketIndex', component: () => import('@/pages/taskAdjustment/PocketIndex'), meta: { title: '兜底机构任务调整', keepAlive: true } }, { path: 'applyBusinessChannel', component: () => import('@/pages/ApplyBusinessChannel') }, { path: 'businessChannel', component: () => import('@/pages/businessChannel/Index'), meta: { title: '业务通道申请', keepAlive: true } }, { path: 'businessChannelAudit', component: () => import('@/pages/businessChannelAudit/Index'), meta: { title: '业务通道审核', keepAlive: true } }, { path: 'ChannelIndx', component: () => import('@/pages/taskAdjustment/ChannelIndx'), meta: { title: '业务通道任务调整', keepAlive: true } }, { path: 'applyCapitalUnit', component: () => import('@/pages/ApplyCapitalUnit') }, { path: 'capitalUnit', component: () => import('@/pages/capitalUnit/Index'), meta: { title: '资金单元申请', keepAlive: true } }, { path: 'capitalUnitAudit', component: () => import('@/pages/capitalUnitAudit/Index'), meta: { title: '资金单元审核', keepAlive: true } }, { path: 'UnitIndex', component: () => import('@/pages/taskAdjustment/UnitIndex'), meta: { title: '资金单元任务调整', keepAlive: true } }, { path: 'productMapConfig', component: () => import('@/pages/productMapConfig/Index'), meta: { title: '资方产品映射配置', keepAlive: true } }, { path: 'selFinanceLoanReapyReport', component: () => import('@/pages/selFinanceLoanReapyReport/Index'), meta: { title: '对资还款记录表', keepAlive: true } }, ] } ] export { routes } export default new VueRouter({ mode: 'hash', base: webPrefix, routes })