Newer
Older
baseResourceFront / src / router / modules / example.js
StephanieGitHub on 24 Mar 2021 829 bytes MOD: 处理跳转其他子系统-非公共部分
/* Layout */
import Layout from '@/layout/Layout'
export const exampleRouters = [
  // 主页
  {
    path: '/',
    component: Layout,
    redirect: 'dashboard',
    name: 'Dashboard',
    // hidden: true,
    children: [{
      path: 'dashboard',
      name: 'Dashboard',
      component: () => import('@/views/dashboard/index'),
      meta: { title: '首页', icon: 'dashboard', noCache: true }
    }]
  },
  {
    path: 'example',
    component: Layout,
    redirect: '/exampleTable',
    name: 'Example',
    alwaysShow: true,
    meta: {
      title: '示例',
      icon: 'icon-config' // 图标
    },
    children: [
      {
        path: '/exampleTable',
        name: 'ExampleTable',
        component: () => import('@/views/example/tableExample'),
        meta: { title: '表格示例', icon: '' }
      }
    ]
  }]