修改加载方式

This commit is contained in:
ival 2019-08-12 09:36:27 +08:00
parent 6d960f82e2
commit fc6279efdf
2 changed files with 85 additions and 85 deletions

View File

@ -137,30 +137,30 @@ export const constantRoutes = [
// 扫码登录 // 扫码登录
{ {
path: '/dp/login', path: '/dp/login',
component: resolve => require(['@/views/login/loginNewScreen'], resolve), component: () => import('@/views/login/loginNewScreen'),
hidden: true hidden: true
}, },
// 密码登录 // 密码登录
{ {
path: '/dp/login1', path: '/dp/login1',
component: resolve => require(['@/views/login/loginScreen'], resolve), component: () => import('@/views/login/loginScreen'),
hidden: true hidden: true
}, },
// 扫码登录 // 扫码登录
{ {
path: '/plan/login', path: '/plan/login',
component: resolve => require(['@/views/login/loginNewPlan'], resolve), component: () => import('@/views/login/loginNewPlan'),
hidden: true hidden: true
}, },
// 密码登录 // 密码登录
{ {
path: '/plan/login1', path: '/plan/login1',
component: resolve => require(['@/views/login/loginPlan'], resolve), component: () => import('@/views/login/loginPlan'),
hidden: true hidden: true
}, },
{ {
path: '/jlmap3d/edit', path: '/jlmap3d/edit',
component: resolve => require(['@/views/jlmap3d/jlmap3dedit'], resolve), component: () => import('@/views/jlmap3d/jlmap3dedit'),
hidden: true hidden: true
}, },
{ {
@ -201,32 +201,32 @@ export const asyncRouter = [
children: [ children: [
{ {
path: 'dashboard', path: 'dashboard',
component: resolve => require(['@/views/dashboard/index.vue'], resolve) component: () => import('@/views/dashboard/index.vue')
} }
] ]
}, },
{ {
path: '/display/:mode', path: '/display/:mode',
component: resolve => require(['@/views/display/index'], resolve), component: () => import('@/views/display/index'),
meta: { meta: {
}, },
hidden: true hidden: true
}, },
{ {
path: '/trainroom', path: '/trainroom',
component: resolve => require(['@/views/trainRoom/index'], resolve), component: () => import('@/views/trainRoom/index'),
meta: { meta: {
}, },
hidden: true hidden: true
}, },
{ {
path: '/jointTraining', path: '/jointTraining',
component: resolve => require(['@/views/jointTraining/index'], resolve), component: () => import('@/views/jointTraining/index'),
hidden: true hidden: true
}, },
{ {
path: '/jlmap3d', path: '/jlmap3d',
component: resolve => require(['@/views/jlmap3d/index'], resolve), component: () => import('@/views/jlmap3d/index'),
meta: { meta: {
}, },
hidden: true hidden: true
@ -241,7 +241,7 @@ export const asyncRouter = [
children: [ children: [
{ {
path: 'skinStyle', path: 'skinStyle',
component: resolve => require(['@/views/map/skinStyle/index'], resolve), component: () => import('@/views/map/skinStyle/index'),
meta: { meta: {
i18n: 'router.skinManage' i18n: 'router.skinManage'
} }
@ -249,19 +249,19 @@ export const asyncRouter = [
{ {
path: 'skinStyle/draft/:mode/:skinStyleId', path: 'skinStyle/draft/:mode/:skinStyleId',
hidden: true, hidden: true,
component: resolve => require(['@/views/map/skinStyle/draft'], resolve) component: () => import('@/views/map/skinStyle/draft')
}, },
{ {
path: 'draw', path: 'draw',
redirect: '/map/draw/0/draft', redirect: '/map/draw/0/draft',
component: resolve => require(['@/views/map/mapdraft/index'], resolve), component: () => import('@/views/map/mapdraft/index'),
meta: { meta: {
i18n: 'router.mapDraw' i18n: 'router.mapDraw'
}, },
children: [ children: [
{ {
path: ':mapId/:view', path: ':mapId/:view',
component: resolve => require(['@/views/map/mapdraft/mapedit/index'], resolve), component: () => import('@/views/map/mapdraft/mapedit/index'),
hidden: true hidden: true
} }
] ]
@ -269,19 +269,19 @@ export const asyncRouter = [
{ {
path: 'runPlan', path: 'runPlan',
redirect: '/map/runPlan/view/draft', redirect: '/map/runPlan/view/draft',
component: resolve => require(['@/views/map/runplan/index'], resolve), component: () => import('@/views/map/runplan/index'),
meta: { meta: {
i18n: 'router.runPlanManage' i18n: 'router.runPlanManage'
}, },
children: [{ children: [{
path: 'view/:mode', path: 'view/:mode',
component: resolve => require(['@/views/map/runplan/chart'], resolve), component: () => import('@/views/map/runplan/chart'),
hidden: true hidden: true
}] }]
}, },
{ {
path: 'product', path: 'product',
component: resolve => require(['@/views/lesson/trainingcategory/index'], resolve), component: () => import('@/views/lesson/trainingcategory/index'),
meta: { meta: {
i18n: 'router.productEdit' i18n: 'router.productEdit'
} }
@ -299,28 +299,28 @@ export const asyncRouter = [
{ {
path: 'record', path: 'record',
redirect: '/lesson/record/training/0/null', redirect: '/lesson/record/training/0/null',
component: resolve => require(['@/views/lesson/trainingrecord/index'], resolve), component: () => import('@/views/lesson/trainingrecord/index'),
meta: { meta: {
i18n: 'router.trainingRecord' i18n: 'router.trainingRecord'
}, },
children: [ children: [
{ {
path: 'training/:trainingId/:trainingName', path: 'training/:trainingId/:trainingName',
component: resolve => require(['@/views/lesson/trainingrecord/manage/index'], resolve), component: () => import('@/views/lesson/trainingrecord/manage/index'),
hidden: true hidden: true
} }
] ]
}, },
{ {
path: 'manage/taskManage', path: 'manage/taskManage',
component: resolve => require(['@/views/lesson/taskmanage/list'], resolve), component: () => import('@/views/lesson/taskmanage/list'),
meta: { meta: {
i18n: 'router.taskManage' i18n: 'router.taskManage'
} }
}, },
{ {
path: 'manage/trainingRule', path: 'manage/trainingRule',
component: resolve => require(['@/views/lesson/trainingRule/list'], resolve), component: () => import('@/views/lesson/trainingRule/list'),
meta: { meta: {
i18n: 'router.trainingRule' i18n: 'router.trainingRule'
} }
@ -328,20 +328,20 @@ export const asyncRouter = [
{ {
path: 'manage/trainingRule/detail', path: 'manage/trainingRule/detail',
hidden: true, hidden: true,
component: resolve => require(['@/views/lesson/trainingRule/detail/index'], resolve), component: () => import('@/views/lesson/trainingRule/detail/index'),
meta: { meta: {
} }
}, },
{ {
path: 'manage/training', path: 'manage/training',
component: resolve => require(['@/views/lesson/trainingmanage/index'], resolve), component: () => import('@/views/lesson/trainingmanage/index'),
meta: { meta: {
i18n: 'router.trainingManage' i18n: 'router.trainingManage'
} }
}, },
{ {
path: 'edit', path: 'edit',
component: resolve => require(['@/views/lesson/lessoncategory/index'], resolve), component: () => import('@/views/lesson/lessoncategory/index'),
meta: { meta: {
i18n: 'router.lessonEdit' i18n: 'router.lessonEdit'
} }
@ -357,7 +357,7 @@ export const asyncRouter = [
children: [ children: [
{ {
path: 'scriptManage', path: 'scriptManage',
component: resolve => require(['@/views/lesson/scriptmanage/list'], resolve), component: () => import('@/views/lesson/scriptmanage/list'),
meta: { meta: {
i18n: 'router.scriptManage' i18n: 'router.scriptManage'
} }
@ -367,14 +367,14 @@ export const asyncRouter = [
{ {
path: '/teach', path: '/teach',
redirect: '/teach/home', redirect: '/teach/home',
component: resolve => require(['@/views/teach/index'], resolve), component: () => import('@/views/teach/index'),
meta: { meta: {
roles: [admin, userLesson, user] roles: [admin, userLesson, user]
}, },
children: [ children: [
{ {
path: 'home', path: 'home',
component: resolve => require(['@/views/teach/home'], resolve), component: () => import('@/views/teach/home'),
meta: { meta: {
i18n: 'router.teachSystem' i18n: 'router.teachSystem'
} }
@ -382,7 +382,7 @@ export const asyncRouter = [
{ {
// 课程详情 // 课程详情
path: 'detail/:lessonId', path: 'detail/:lessonId',
component: resolve => require(['@/views/teach/detail/index'], resolve), component: () => import('@/views/teach/detail/index'),
meta: { meta: {
}, },
hidden: true hidden: true
@ -390,14 +390,14 @@ export const asyncRouter = [
{ {
// 实训详情 // 实训详情
path: 'practical/:trainingId/:lessonId', path: 'practical/:trainingId/:lessonId',
component: resolve => require(['@/views/teach/practical/index'], resolve), component: () => import('@/views/teach/practical/index'),
meta: { meta: {
}, },
hidden: true hidden: true
}, },
{ {
path: 'pay/:lessonId', path: 'pay/:lessonId',
component: resolve => require(['@/views/components/pay/index'], resolve), component: () => import('@/views/components/pay/index'),
meta: { meta: {
}, },
hidden: true hidden: true
@ -407,14 +407,14 @@ export const asyncRouter = [
{ {
path: '/exam', path: '/exam',
redirect: '/exam/home', redirect: '/exam/home',
component: resolve => require(['@/views/exam/index'], resolve), component: () => import('@/views/exam/index'),
meta: { meta: {
roles: [admin, userExam, user] roles: [admin, userExam, user]
}, },
children: [ children: [
{ {
path: 'home', path: 'home',
component: resolve => require(['@/views/exam/home'], resolve), component: () => import('@/views/exam/home'),
meta: { meta: {
i18n: 'router.examSystem' i18n: 'router.examSystem'
} }
@ -422,40 +422,40 @@ export const asyncRouter = [
{ {
// 试卷详情 // 试卷详情
path: 'detail/:examId', path: 'detail/:examId',
component: resolve => require(['@/views/exam/detail/examDetail'], resolve), component: () => import('@/views/exam/detail/examDetail'),
hidden: true hidden: true
}, },
{ {
path: 'course/:lessonId', path: 'course/:lessonId',
component: resolve => require(['@/views/exam/detail/courseDetail'], resolve), component: () => import('@/views/exam/detail/courseDetail'),
hidden: true hidden: true
}, },
{ {
// 规则管理 // 规则管理
path: 'examRule/manage', path: 'examRule/manage',
component: resolve => require(['@/views/publish/examRule/index'], resolve), component: () => import('@/views/publish/examRule/index'),
hidden: true hidden: true
}, },
{ {
path: 'examRule/draft/:mode/:ruleId/:lessonId', path: 'examRule/draft/:mode/:ruleId/:lessonId',
hidden: true, hidden: true,
component: resolve => require(['@/views/publish/examRule/draft/index'], resolve) component: () => import('@/views/publish/examRule/draft/index')
}, },
{ {
path: 'pay/:lessonId', path: 'pay/:lessonId',
component: resolve => require(['@/views/components/pay/index'], resolve), component: () => import('@/views/components/pay/index'),
hidden: true hidden: true
}, },
{ {
// 开始考试 // 开始考试
path: 'questionDetail/:examQuestionId', path: 'questionDetail/:examQuestionId',
component: resolve => require(['@/views/exam/detail/questionDetail'], resolve), component: () => import('@/views/exam/detail/questionDetail'),
hidden: true hidden: true
}, },
{ {
// 考试结果 // 考试结果
path: 'result/:userExamId', path: 'result/:userExamId',
component: resolve => require(['@/views/exam/result'], resolve), component: () => import('@/views/exam/result'),
hidden: true hidden: true
} }
] ]
@ -463,26 +463,26 @@ export const asyncRouter = [
{ {
path: '/demonstration', path: '/demonstration',
redirect: '/demonstration/home', redirect: '/demonstration/home',
component: resolve => require(['@/views/demonstration/index'], resolve), component: () => import('@/views/demonstration/index'),
meta: { meta: {
roles: [admin, userSimulation, user] roles: [admin, userSimulation, user]
}, },
children: [ children: [
{ {
path: 'home', path: 'home',
component: resolve => require(['@/views/demonstration/home'], resolve), component: () => import('@/views/demonstration/home'),
meta: { meta: {
i18n: 'router.demonstrationSystem' i18n: 'router.demonstrationSystem'
} }
}, },
{ {
path: 'detail/:mapId', path: 'detail/:mapId',
component: resolve => require(['@/views/demonstration/detail/index'], resolve), component: () => import('@/views/demonstration/detail/index'),
hidden: true hidden: true
}, },
{ {
path: 'pay/:lessonId', path: 'pay/:lessonId',
component: resolve => require(['@/views/components/pay/index'], resolve), component: () => import('@/views/components/pay/index'),
hidden: true hidden: true
} }
] ]
@ -490,14 +490,14 @@ export const asyncRouter = [
{ {
path: '/dp', path: '/dp',
redirect: '/dp/home', redirect: '/dp/home',
component: resolve => require(['@/views/screenMonitor/index'], resolve), component: () => import('@/views/screenMonitor/index'),
meta: { meta: {
roles: [admin, userScreen, user] roles: [admin, userScreen, user]
}, },
children: [ children: [
{ {
path: 'home', path: 'home',
component: resolve => require(['@/views/screenMonitor/home'], resolve), component: () => import('@/views/screenMonitor/home'),
meta: { meta: {
i18n: 'router.dpSystem' i18n: 'router.dpSystem'
}, },
@ -505,19 +505,19 @@ export const asyncRouter = [
}, },
{ {
path: 'detail/:lessonId', path: 'detail/:lessonId',
component: resolve => require(['@/views/screenMonitor/detail/index'], resolve), component: () => import('@/views/screenMonitor/detail/index'),
hidden: true hidden: true
}, },
{ {
path: 'pay/:lessonId', path: 'pay/:lessonId',
component: resolve => require(['@/views/components/pay/index'], resolve), component: () => import('@/views/components/pay/index'),
hidden: true hidden: true
} }
] ]
}, },
{ {
path: '/plan/tool', path: '/plan/tool',
component: resolve => require(['@/views/planMonitor/editTool/index'], resolve), component: () => import('@/views/planMonitor/editTool/index'),
meta: { meta: {
}, },
hidden: true hidden: true
@ -525,14 +525,14 @@ export const asyncRouter = [
{ {
path: '/plan', path: '/plan',
redirect: '/plan/home', redirect: '/plan/home',
component: resolve => require(['@/views/planMonitor/index'], resolve), component: () => import('@/views/planMonitor/index'),
meta: { meta: {
roles: [admin, user] roles: [admin, user]
}, },
children: [ children: [
{ {
path: 'home', path: 'home',
component: resolve => require(['@/views/planMonitor/home'], resolve), component: () => import('@/views/planMonitor/home'),
meta: { meta: {
i18n: 'router.planSystem' i18n: 'router.planSystem'
}, },
@ -540,12 +540,12 @@ export const asyncRouter = [
}, },
{ {
path: 'detail/:lessonId', path: 'detail/:lessonId',
component: resolve => require(['@/views/planMonitor/detail'], resolve), component: () => import('@/views/planMonitor/detail'),
hidden: true hidden: true
}, },
{ {
path: 'pay/:lessonId', path: 'pay/:lessonId',
component: resolve => require(['@/views/components/pay/index'], resolve), component: () => import('@/views/components/pay/index'),
hidden: true hidden: true
} }
] ]
@ -559,7 +559,7 @@ export const asyncRouter = [
children: [ children: [
{ {
path: 'manage', path: 'manage',
component: resolve => require(['@/views/replay/index'], resolve), component: () => import('@/views/replay/index'),
meta: { meta: {
i18n: 'router.replayManage' i18n: 'router.replayManage'
} }
@ -575,14 +575,14 @@ export const asyncRouter = [
children: [ children: [
{ {
path: 'manage', path: 'manage',
component: resolve => require(['@/views/package/index'], resolve), component: () => import('@/views/package/index'),
meta: { meta: {
i18n: 'router.permissionManage' i18n: 'router.permissionManage'
} }
}, },
{ {
path: 'draft', path: 'draft',
component: resolve => require(['@/views/package/draft/ruleForm'], resolve), component: () => import('@/views/package/draft/ruleForm'),
hidden: true hidden: true
} }
] ]
@ -597,78 +597,78 @@ export const asyncRouter = [
children: [ children: [
{ {
path: 'map', path: 'map',
component: resolve => require(['@/views/publish/publishMap/index'], resolve), component: () => import('@/views/publish/publishMap/index'),
meta: { meta: {
i18n: 'router.publishMapManage' i18n: 'router.publishMapManage'
} }
}, },
{ {
path: 'product', path: 'product',
component: resolve => require(['@/views/publish/productStatus/index'], resolve), component: () => import('@/views/publish/productStatus/index'),
meta: { meta: {
i18n: 'router.productStateManage' i18n: 'router.productStateManage'
} }
}, },
{ {
path: 'lesson', path: 'lesson',
component: resolve => require(['@/views/publish/publishLesson/index'], resolve), component: () => import('@/views/publish/publishLesson/index'),
meta: { meta: {
i18n: 'router.publishLessonManage' i18n: 'router.publishLessonManage'
} }
}, },
// { // {
// path: 'script', // path: 'script',
// component: resolve => require(['@/views/publish/simulationScript/index'], resolve), // component:() => import('@/views/publish/simulationScript/index'),
// meta: { // meta: {
// title: '仿真脚本管理', // title: '仿真脚本管理',
// } // }
// }, // },
{ {
path: 'runPlan/template', path: 'runPlan/template',
component: resolve => require(['@/views/publish/runPlanTemplate/index'], resolve), component: () => import('@/views/publish/runPlanTemplate/index'),
meta: { meta: {
i18n: 'router.runPlanTemplateManage' i18n: 'router.runPlanTemplateManage'
} }
}, },
{ {
path: 'runPlan/common', path: 'runPlan/common',
component: resolve => require(['@/views/publish/runPlanCommon/index'], resolve), component: () => import('@/views/publish/runPlanCommon/index'),
meta: { meta: {
i18n: 'router.runPlanCommonManage' i18n: 'router.runPlanCommonManage'
} }
}, },
{ {
path: 'runPlan/everyDay', path: 'runPlan/everyDay',
component: resolve => require(['@/views/publish/runPlanEveryDay/index'], resolve), component: () => import('@/views/publish/runPlanEveryDay/index'),
meta: { meta: {
i18n: 'router.runPlanEveryDayManage' i18n: 'router.runPlanEveryDayManage'
} }
}, },
{ {
path: 'examRule/manage', path: 'examRule/manage',
component: resolve => require(['@/views/publish/examRule/index'], resolve), component: () => import('@/views/publish/examRule/index'),
meta: { meta: {
i18n: 'router.examRuleManage' i18n: 'router.examRuleManage'
} }
}, },
{ {
path: 'map/draft/:mode/:mapId', path: 'map/draft/:mode/:mapId',
component: resolve => require(['@/views/publish/publishMap/draft'], resolve), component: () => import('@/views/publish/publishMap/draft'),
hidden: true hidden: true
}, },
{ {
path: 'examRule/draft/:mode/:ruleId/:lessonId', path: 'examRule/draft/:mode/:ruleId/:lessonId',
component: resolve => require(['@/views/publish/examRule/draft/index'], resolve), component: () => import('@/views/publish/examRule/draft/index'),
hidden: true hidden: true
}, },
{ {
path: 'runPlan/common/:mode', path: 'runPlan/common/:mode',
component: resolve => require(['@/views/publish/runPlanCommon/draft'], resolve), component: () => import('@/views/publish/runPlanCommon/draft'),
hidden: true hidden: true
}, },
{ {
path: 'runPlan/view/:mode', path: 'runPlan/view/:mode',
component: resolve => require(['@/views/map/runplan/chart'], resolve), component: () => import('@/views/map/runplan/chart'),
hidden: true hidden: true
} }
] ]
@ -683,28 +683,28 @@ export const asyncRouter = [
children: [ children: [
{ {
path: 'commodity/manage', path: 'commodity/manage',
component: resolve => require(['@/views/orderauthor/commodity/index'], resolve), component: () => import('@/views/orderauthor/commodity/index'),
meta: { meta: {
i18n: 'router.commodityManage' i18n: 'router.commodityManage'
} }
}, },
{ {
path: 'order/manage', path: 'order/manage',
component: resolve => require(['@/views/orderauthor/order/list'], resolve), component: () => import('@/views/orderauthor/order/list'),
meta: { meta: {
i18n: 'router.orderManage' i18n: 'router.orderManage'
} }
}, },
{ {
path: 'author/manage', path: 'author/manage',
component: resolve => require(['@/views/orderauthor/author/index'], resolve), component: () => import('@/views/orderauthor/author/index'),
meta: { meta: {
i18n: 'router.authorityManage' i18n: 'router.authorityManage'
} }
}, },
{ {
path: 'transfer/manage', path: 'transfer/manage',
component: resolve => require(['@/views/orderauthor/permission/index'], resolve), component: () => import('@/views/orderauthor/permission/index'),
meta: { meta: {
i18n: 'router.authorityTransferManage' i18n: 'router.authorityTransferManage'
} }
@ -712,7 +712,7 @@ export const asyncRouter = [
{ {
path: 'commodity/draft/:mode/:commodityId', path: 'commodity/draft/:mode/:commodityId',
hidden: true, hidden: true,
component: resolve => require(['@/views/orderauthor/commodity/draft'], resolve), component: () => import('@/views/orderauthor/commodity/draft'),
meta: { meta: {
i18n: 'router.addCommodity' i18n: 'router.addCommodity'
} }
@ -720,7 +720,7 @@ export const asyncRouter = [
{ {
path: 'order/draft/:mode/:orderId', path: 'order/draft/:mode/:orderId',
hidden: true, hidden: true,
component: resolve => require(['@/views/orderauthor/order/draft'], resolve), component: () => import('@/views/orderauthor/order/draft'),
meta: { meta: {
i18n: 'router.addOrder' i18n: 'router.addOrder'
} }
@ -728,19 +728,19 @@ export const asyncRouter = [
{ {
path: 'author/draft/:mode/:userId', path: 'author/draft/:mode/:userId',
hidden: true, hidden: true,
component: resolve => require(['@/views/orderauthor/author/draft'], resolve), component: () => import('@/views/orderauthor/author/draft'),
meta: { meta: {
i18n: 'router.addCoursePermissions' i18n: 'router.addCoursePermissions'
} }
}, },
{ {
path: 'transfer/detail/:permissionId', path: 'transfer/detail/:permissionId',
component: resolve => require(['@/views/orderauthor/permission/detail'], resolve), component: () => import('@/views/orderauthor/permission/detail'),
hidden: true hidden: true
}, },
{ {
path: 'transfer/package', path: 'transfer/package',
component: resolve => require(['@/views/orderauthor/permission/draft/ruleForm'], resolve), component: () => import('@/views/orderauthor/permission/draft/ruleForm'),
hidden: true hidden: true
} }
] ]
@ -755,7 +755,7 @@ export const asyncRouter = [
children: [ children: [
{ {
path: 'dictionary', path: 'dictionary',
component: resolve => require(['@/views/management/dictionary/index'], resolve), component: () => import('@/views/management/dictionary/index'),
meta: { meta: {
i18n: 'router.dataDictionary' i18n: 'router.dataDictionary'
} }
@ -763,42 +763,42 @@ export const asyncRouter = [
{ {
path: 'dictionary/detail', path: 'dictionary/detail',
hidden: true, hidden: true,
component: resolve => require(['@/views/management/dictionaryDetail/index'], resolve), component: () => import('@/views/management/dictionaryDetail/index'),
meta: { meta: {
i18n: 'router.dataDictionaryDetails' i18n: 'router.dataDictionaryDetails'
} }
}, },
{ {
path: 'userManage', path: 'userManage',
component: resolve => require(['@/views/management/userControl/index'], resolve), component: () => import('@/views/management/userControl/index'),
meta: { meta: {
i18n: 'router.userManage' i18n: 'router.userManage'
} }
}, },
{ {
path: 'userTrainingManage', path: 'userTrainingManage',
component: resolve => require(['@/views/management/userTraining/index'], resolve), component: () => import('@/views/management/userTraining/index'),
meta: { meta: {
i18n: 'router.userTrainingManage' i18n: 'router.userTrainingManage'
} }
}, },
{ {
path: 'userExamManage', path: 'userExamManage',
component: resolve => require(['@/views/management/userExam/index'], resolve), component: () => import('@/views/management/userExam/index'),
meta: { meta: {
i18n: 'router.userExamManage' i18n: 'router.userExamManage'
} }
}, },
{ {
path: 'userSimulationManage', path: 'userSimulationManage',
component: resolve => require(['@/views/management/userSimulation/index'], resolve), component: () => import('@/views/management/userSimulation/index'),
meta: { meta: {
i18n: 'router.userSimulationManage' i18n: 'router.userSimulationManage'
} }
}, },
{ {
path: 'existingSimulation', path: 'existingSimulation',
component: resolve => require(['@/views/management/existingSimulation/index'], resolve), component: () => import('@/views/management/existingSimulation/index'),
meta: { meta: {
i18n: 'router.existingSimulation' i18n: 'router.existingSimulation'
} }

View File

@ -3,8 +3,8 @@ export function getBaseUrl() {
let BASE_API; let BASE_API;
if (process.env.NODE_ENV === 'development') { if (process.env.NODE_ENV === 'development') {
// BASE_API = 'https://joylink.club/jlcloud'; // BASE_API = 'https://joylink.club/jlcloud';
// BASE_API = 'https://test.joylink.club/jlcloud'; BASE_API = 'https://test.joylink.club/jlcloud';
BASE_API = 'http://192.168.3.5:9000'; // 袁琪 // BASE_API = 'http://192.168.3.5:9000'; // 袁琪
// BASE_API = 'http://192.168.3.6:9000'; // 旭强 // BASE_API = 'http://192.168.3.6:9000'; // 旭强
// BASE_API = 'http://192.168.3.4:9000' // 琰培 // BASE_API = 'http://192.168.3.4:9000' // 琰培
} else { } else {