智慧园区前端大屏
1
shuishen
2024-12-02 1dee40ea46601f2ee5d10aa0190625ebf03bdc4e
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-21 15:44:21
 * @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,18 +68,32 @@
            component: () => import('@/views/space/index.vue')
          },
          {
            path: 'supplies',
            meta: {
              title: '应急物资'
            },
            component: () => import('@/views/supplies/index.vue')
          },
          {
            path: 'pac',
            meta: {
              title: '三级防控'
            },
            component: () => import('@/views/pac/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',
@@ -88,11 +103,11 @@
            component: () => import('@/views/rt/index.vue')
          },
          {
            path: 'pd',
            path: 'ochart',
            meta: {
              title: '突发事件模拟'
              title: '作战图'
            },
            component: () => import('@/views/pd/index.vue')
            component: () => import('@/views/ochart/index.vue')
          },
        ]
      },