派生自 wuyushui/SewerAndRainNetwork

XingChuan
2021-05-31 5d3cafca01c6ad878d51533b955b530e12f9d99a
src/router/routes.js
@@ -8,30 +8,31 @@
 *  access: (null) 可访问该页面的权限数组,当前路由设置的权限会影响子路由
 * }
 */
import { mapRoutes } from '@router/map'
// 默认跳转路由
import App from "../App";
import PipeLineIndex from "../views/baseInfoMgr/pipeline/PipeLineIndex";
import MapTemplate from "../views/MapTemplate";
import PipeLineIndex from '../views/baseInfoMgr/pipeline/PipeLineIndex'
import MapTemplate from '../views/MapTemplate'
// 应用业务相关路由,挂载menu上的page
export const routes = [{
    path: '/',
    name: 'Main',
    component: App,
    redirect: '/home',
    children: [{
        path: 'home',
        name: 'Home',
        meta: {
            title: '首页'
        },
        component: MapTemplate
    }, {
        path: 'baseInfoMgr/pipeLine',
        name: 'baseInfoMgr',
        component: PipeLineIndex,
        meta: {
            title: '基础数据维护'
        }
    }]
const mainRoutes = [{
  path: '/',
  name: 'Main',
  component: MapTemplate,
  redirect: '/mapTemplate',
  children: [{
    path: 'baseInfoMgr/pipeLine',
    name: 'baseInfoMgr',
    component: PipeLineIndex,
    meta: {
      title: '基础数据维护'
    }
  }, {
    path: '/mapTemplate',
    name: 'mapTemplate',
    component: MapTemplate,
    meta: {
      title: '基础地图'
    }
  }]
}]
export const routes = [...mainRoutes, ...mapRoutes]