Newer
Older
xc-business-system / src / router / modules / workbench.ts
import type { Route } from '@/global'

const Layout = () => import('@/layouts/index_noSiderbar.vue')
// const Layout = () => import('@/layouts/index.vue')

const routes: Route.recordRaw[] = [
  {
    path: '/workbench',
    component: Layout,
    redirect: '/workbench/index',
    name: 'Workbench',
    meta: {
      title: '工作台',
      icon: 'ep:key',
      auth: '/workbench',
    },
    children: [
      {
        path: 'index',
        name: 'WorkbenchIndex',
        component: () => import('@/views/workbench/index.vue'),
        meta: {
          title: '工作台',
          auth: '/workbench/index',
          icon: 'ep:key',
        },
      },
      {
        path: 'approvalList',
        name: 'WorkbenchApprovalList',
        component: () => import('@/views/workbench/approve/list.vue'),
        meta: {
          title: '审批提醒',
          auth: '/workbench/approvalList',
          icon: 'ep:key',
        },
      },
      {
        path: 'workList',
        name: 'WorkbenchWorkList',
        component: () => import('@/views/workbench/work/workList.vue'),
        meta: {
          title: '工作提醒',
          auth: '/workbench/workList',
          icon: 'ep:key',
        },
      },
    ],
  },
]

export default routes