智慧园区前端大屏
shuishen
2024-12-02 3d00cca282cb9d64f13f30aa9850b874f3245816
路由调整
1 files modified
48 ■■■■■ changed files
src/router/index.js 48 ●●●●● patch | view | raw | blame | history
src/router/index.js
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2024-10-25 16:35:31
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2024-11-26 20:14:39
 * @LastEditTime: 2024-11-27 20:30:40
 * @FilePath: \bigScreen\src\router\index.js
 * @Description: 
 * 
@@ -12,6 +12,8 @@
const layout = () => import("@/pages/layout/index.vue")
const firstLayout = () => import('@/pages/first/index.vue')
const subLayout = () => import('@/pages/sub/index.vue')
const mapLayout = () => import('@/pages/map/index.vue')
const singleLayout = () => import('@/pages/single/index.vue')
const companyInfo = () => import('@/views/companyInfo/index.vue')
const routes = [
  // {
@@ -36,14 +38,13 @@
  {
    path: '/layout',
    name: 'layout',
    redirect: '/layout/first/survey',
    redirect: '/layout/map/survey',
    component: layout,
    children: [
      {
        path: 'first',
        name: 'first',
        component: firstLayout,
        redirect: '/layout/first/survey',
        path: 'map',
        name: 'map',
        component: mapLayout,
        children: [
          {
            path: 'survey',
@@ -67,13 +68,6 @@
            component: () => import('@/views/space/index.vue')
          },
          {
            path: 'supplies',
            meta: {
              title: '应急物资'
            },
            component: () => import('@/views/supplies/index.vue')
          },
          {
            path: 'pac',
            meta: {
              title: '三级防控'
@@ -81,19 +75,33 @@
            component: () => import('@/views/pac/index.vue')
          },
          {
            path: 'rt',
            meta: {
              title: '救援队伍'
            },
            component: () => import('@/views/rt/index.vue')
          },
          {
            path: 'pd',
            meta: {
              title: '突发事件模拟'
            },
            component: () => import('@/views/pd/index.vue')
          },
        ]
      },
      {
        path: 'single',
        name: 'single',
        component: singleLayout,
        children: [
          {
            path: 'supplies',
            meta: {
              title: '应急物资'
            },
            component: () => import('@/views/supplies/index.vue')
          },
          {
            path: 'rt',
            meta: {
              title: '救援队伍'
            },
            component: () => import('@/views/rt/index.vue')
          },
          {
            path: 'ochart',
            meta: {