| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 |
- import { createRouter, createWebHistory } from 'vue-router'
- const routes = [
- {
- path: '/',
- name: 'root',
- component: function () {
- return import('../views/Root.vue')
- },
- children: [
- {
- path: '/',
- component: function () {
- return import('../views/HomePage.vue')
- },
- },
- {
- path: '/sksjgl',
- component: function () {
- return import('../views/Sksjgl.vue')
- },
- },
- {
- path: '/wgn',
- name: 'wgn',
- component: function () {
- return import('../views/Wgn.vue')
- },
- },
- {
- path: 'skmh',
- component: function () {
- return import('../views/skmh/index.vue')
- },
- },
- {
- path: '/yxgl',
- name: 'yxgl',
- component: function () {
- return import('../views/Yxgl.vue')
- },
- children: [ // 子路由配置开始
- {
- path: 'StatisticalAnalysis',
- component: function () {
- return import('../views/yxgl/StatisticalAnalysis.vue')
- },
- }
- ], // 子路由配置结束
- },
- //应用管理
- {
- path: '/yygl',
- path: 'yygl',
- component: function () {
- return import('../views/yygl/index.vue')
- }
- },
- //应用中心
- {
- path: 'appCenter',
- path: 'appCenter',
- component: function () {
- return import('../views/yygl/appCenter.vue')
- }
- },
- ],
- },
- // {
- // path: '/example',
- // name: 'example',
- // component: function () {
- // return import('../views/Example.vue')
- // },
- // children: [ // 子路由配置开始
- // {
- // path: '/yygl',
- // path: 'yygl',
- // component: function () {
- // return import('../views/yygl/index.vue')
- // }
- // },
- // //应用中心
- // {
- // path: 'appCenter',
- // path: 'appCenter',
- // component: function () {
- // return import('../views/yygl/appCenter.vue')
- // }
- // },
- // ],
- // },
- /***************** 跳转单页面 ******************/
- // 时空门户
- // {
- // path: '/skmh',
- // name: 'skmh',
- // component: function () {
- // return import('../views/skmh/index.vue')
- // },
- // children: [ // 子路由配置开始
- // {
- // path: 'example',
- // component: function () {
- // return import('../views/skmh/Example.vue')
- // }
- // },
- // {
- // path: 'index',
- // component: function () {
- // return import('../views/skmh/index.vue')
- // }
- // },
- // {
- // path: 'scene',
- // component: function () {
- // return import('../views/skmh/scene/index.vue')
- // }
- // }
- // ], // 子路由配置结束
- // },
- // 微功能
- {
- path: '/wgnSingle',
- name: 'wgnSingle',
- component: function () {
- return import('../views/wgn/Example.vue')
- },
- },
- // 应用管理
- // {
- // path: '/yygl',
- // name: 'yygl',
- // component: function () {
- // return import('../views/Yygl.vue')
- // },
- // children: [ // 子路由配置开始
- // {
- // path: 'example',
- // component: function () {
- // return import('../views/yygl/Example.vue')
- // },
- // },
- // ], // 子路由配置结束
- // },
- // 运行管理
- // {
- // path: '/yxgl',
- // name: 'yxgl',
- // component: function () {
- // return import('../views/Yxgl.vue')
- // },
- // children: [ // 子路由配置开始
- // {
- // path: 'StatisticalAnalysis',
- // component: function () {
- // return import('../views/yxgl/StatisticalAnalysis.vue')
- // },
- // }
- // ], // 子路由配置结束
- // },
- ]
- const router = createRouter({
- history: createWebHistory(process.env.BASE_URL),
- routes
- })
- export default router
|