zouyu
2025-03-19 45792b3776cda2e1ada31755ffc226a663f90b48
src/router/index.js
@@ -46,6 +46,18 @@
    component: () => import("@/views/login"),
    hidden: true,
  },
    // 第三方登录页
  {
    path: "/thirdpartylogin",
    component: () => import("@/views/thirdpartylogin"),
    hidden: true,
  },
  // 第三方登录页中转
  {
    path: "/logindemo",
    component: () => import("@/views/logindemo"),
    hidden: true,
  },
  {
    path: "/register",
    component: () => import("@/views/register"),
@@ -59,6 +71,11 @@
  {
    path: "/401",
    component: () => import("@/views/error/401"),
    hidden: true,
  },
  {
    path: "/lock",
    component: () => import("@/layout/components/lock/index"),
    hidden: true,
  },
  {
@@ -93,7 +110,7 @@
// 动态路由,基于用户权限动态去加载
export const dynamicRoutes = [
  {
    // 下单页面
    // 检验下单页面
    path: '/inspectionOrder',
    component: Layout,
    hidden: true,
@@ -116,6 +133,29 @@
    ]
  },
  {
    // 检验任务页面
    path: '/inspectionTask',
    component: Layout,
    hidden: true,
    permissions: ['business:inspection'],
    children: [
      {
        // 任务检验页面
        path: 'inspection',
        component: () => import('@/views/business/inspectionTask/Inspection'),
        name: 'Inspection',
        meta: {keepAlive: false, title: '委托单检验', activeMenu: '/business/inspectionTask' }
      },
      // {
      //   // 查看委托单详情页面
      //   path: 'showDetails',
      //   component: () => import('@/views/business/inspectionOrder/add'),
      //   name: 'showDetails',
      //   meta: { title: '委托单详情', activeMenu: '/business/inspectionOrder' }
      // }
    ]
  },
  {
    // 用户管理
    path: "/system/user-auth",
    component: Layout,