| | |
| | | const routes: Array<RouteRecordRaw> = [ |
| | | { |
| | | path: '/', |
| | | redirect: '/' + ERouterName.PROJECT |
| | | redirect: '/' + ERouterName.LOGIN |
| | | }, |
| | | // 首页 |
| | | // 首页 登陆页面 |
| | | { |
| | | path: '/' + ERouterName.PROJECT, |
| | | name: ERouterName.PROJECT, |
| | | path: '/' + ERouterName.LOGIN, |
| | | name: ERouterName.LOGIN, |
| | | component: () => import('/@/pages/page-web/index.vue') |
| | | }, |
| | | // members, devices |
| | |
| | | name: ERouterName.DEVICES, |
| | | component: () => import('/@/pages/page-web/projects/devices.vue') |
| | | }, |
| | | // 项目列表 |
| | | { |
| | | path: '/' + ERouterName.PROJECT, |
| | | name: ERouterName.PROJECT, |
| | | redirect: '/' + ERouterName.PROJECT_LIST, |
| | | component: () => import('/@/pages/page-web/projects/project_list/index.vue'), |
| | | children: [ |
| | | { |
| | | path: '/' + ERouterName.PROJECT_LIST, |
| | | component: () => import('/@/pages/page-web/projects/project_list/list_page.vue/list.vue') |
| | | }, |
| | | // workspace |
| | | { |
| | | path: '/' + ERouterName.WORKSPACE, |
| | | name: ERouterName.WORKSPACE, |
| | | component: () => import('/@/pages/page-web/projects/workspace.vue'), |
| | | redirect: '/' + ERouterName.TSA, |
| | | children: [ |
| | | { |
| | | path: '/' + ERouterName.LIVESTREAM, |
| | | name: ERouterName.LIVESTREAM, |
| | | component: () => import('/@/pages/page-web/projects/livestream.vue'), |
| | | children: [ |
| | | { |
| | | path: ERouterName.LIVING, |
| | | name: ERouterName.LIVING, |
| | | components: { |
| | | LiveAgora, |
| | | LiveOthers |
| | | } |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | path: '/' + ERouterName.TSA, |
| | | component: () => import('/@/pages/page-web/projects/tsa.vue') |
| | | }, |
| | | { |
| | | path: '/' + ERouterName.LAYER, |
| | | name: ERouterName.LAYER, |
| | | component: () => import('/@/pages/page-web/projects/layer.vue') |
| | | }, |
| | | { |
| | | path: '/' + ERouterName.MEDIA, |
| | | name: ERouterName.MEDIA, |
| | | component: () => import('/@/pages/page-web/projects/media.vue') |
| | | }, |
| | | { |
| | | path: '/' + ERouterName.WAYLINE, |
| | | name: ERouterName.WAYLINE, |
| | | component: () => import('/@/pages/page-web/projects/wayline.vue') |
| | | }, |
| | | { |
| | | path: '/' + ERouterName.TASK, |
| | | name: ERouterName.TASK, |
| | | component: () => import('/@/pages/page-web/projects/task.vue'), |
| | | children: [ |
| | | { |
| | | path: ERouterName.CREATE_PLAN, |
| | | name: ERouterName.CREATE_PLAN, |
| | | component: CreatePlan, |
| | | children: [ |
| | | { |
| | | path: ERouterName.SELECT_PLAN, |
| | | name: ERouterName.SELECT_PLAN, |
| | | components: { |
| | | WaylinePanel, |
| | | DockPanel |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | |
| | | ] |
| | | } |
| | | ], |
| | | meta: { |
| | | header: false |
| | | } |
| | | }, |
| | | ] |
| | | }, |
| | | { |
| | | path: '/' + ERouterName.FIRMWARES, |
| | | name: ERouterName.FIRMWARES, |
| | | component: () => import('../pages/page-web/projects/Firmwares.vue') |
| | | } |
| | | ] |
| | | }, |
| | | // workspace |
| | | { |
| | | path: '/' + ERouterName.WORKSPACE, |
| | | name: ERouterName.WORKSPACE, |
| | | component: () => import('/@/pages/page-web/projects/workspace.vue'), |
| | | redirect: '/' + ERouterName.TSA, |
| | | children: [ |
| | | { |
| | | path: '/' + ERouterName.LIVESTREAM, |
| | | name: ERouterName.LIVESTREAM, |
| | | component: () => import('/@/pages/page-web/projects/livestream.vue'), |
| | | children: [ |
| | | { |
| | | path: ERouterName.LIVING, |
| | | name: ERouterName.LIVING, |
| | | components: { |
| | | LiveAgora, |
| | | LiveOthers |
| | | } |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | path: '/' + ERouterName.TSA, |
| | | component: () => import('/@/pages/page-web/projects/tsa.vue') |
| | | }, |
| | | { |
| | | path: '/' + ERouterName.LAYER, |
| | | name: ERouterName.LAYER, |
| | | component: () => import('/@/pages/page-web/projects/layer.vue') |
| | | }, |
| | | { |
| | | path: '/' + ERouterName.MEDIA, |
| | | name: ERouterName.MEDIA, |
| | | component: () => import('/@/pages/page-web/projects/media.vue') |
| | | }, |
| | | { |
| | | path: '/' + ERouterName.WAYLINE, |
| | | name: ERouterName.WAYLINE, |
| | | component: () => import('/@/pages/page-web/projects/wayline.vue') |
| | | }, |
| | | { |
| | | path: '/' + ERouterName.TASK, |
| | | name: ERouterName.TASK, |
| | | component: () => import('/@/pages/page-web/projects/task.vue'), |
| | | children: [ |
| | | { |
| | | path: ERouterName.CREATE_PLAN, |
| | | name: ERouterName.CREATE_PLAN, |
| | | component: CreatePlan, |
| | | children: [ |
| | | { |
| | | path: ERouterName.SELECT_PLAN, |
| | | name: ERouterName.SELECT_PLAN, |
| | | components: { |
| | | WaylinePanel, |
| | | DockPanel |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | |
| | | ] |
| | | } |
| | | ] |
| | | }, |