zhouwx
2024-11-21 a6a8e49af8c8172f4209dd94e65f53f17825cc44
src/router/index.js
@@ -1,4 +1,4 @@
import { createWebHistory, createRouter } from 'vue-router'
import { createWebHistory, createWebHashHistory, createRouter } from 'vue-router'
/* Layout */
import Layout from '@/layout'
@@ -53,9 +53,33 @@
    hidden: true
  },
  {
    path: '/fillForm',
    component: () => import('@/views/safetyReview/expertManage/fillForm/index.vue'),
    hidden: true
  },
  {
    path: '/checkProgress',
    component: () => import('@/views/safetyReview/expertManage/checkProgress/index.vue'),
    hidden: true
  },
  // {
  //   path: '/noMenu',
  //   component: Layout,
  //   redirect: '/noMenu',
  //   children: [
  //     {
  //       path: '/noMenu',
  //       component: () => import('@/views/error/noMenu.vue'),
  //       name: 'noMenu',
  //       meta: { title: '提示',icon: 'form',  affix: true }
  //     }
  //   ]
  // },
  {
    path: '',
    component: Layout,
    redirect: '/index',
    hidden: true,
    children: [
      {
        path: '/index',
@@ -78,7 +102,21 @@
        meta: { title: '个人中心', icon: 'user' }
      }
    ]
  }
  },
  {
    path: '',
    component: Layout,
    redirect: '/process',
    hidden: true,
    children: [
      {
        path: '/process',
        component: () => import('@/views/safetyReview/projectManage/process.vue'),
        name: 'Process',
        meta: { title: '项目管理', icon: 'dashboard', affix: true }
      }
    ]
  },
]
// 动态路由,基于用户权限动态去加载