Newer
Older
smartcity_env_front / src / router / modules / environment.js
[wangxitong] on 22 Jul 2021 1 KB first commit
/* Layout */
import Layout from '@/layout/Layout'
export const environmentRouters = [
  // 主页
  {
    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: 'environment',
    component: Layout,
    redirect: '/environmentPoint',
    name: 'Environment',
    alwaysShow: true,
    meta: {
      title: '环境监控管理',
      icon: 'icon-config' // 图标
    },
    children: [
      {
        path: '/environmentPoint',
        name: 'EnvironmentPoint',
        component: () => import('@/views/environment/environmentPoint'),
        meta: { title: '环境监控点位', icon: '' }
      }, {
        path: '/environmentData',
        name: 'EnvironmentData',
        component: () => import('@/views/environment/environmentData'),
        meta: { title: '环境监测数据', icon: '' }
      }, {
        path: '/environmentCase',
        name: 'EnvironmentCase',
        component: () => import('@/views/dashboard/index'),
        meta: { title: '环境案卷管理', icon: '' }
      }
    ]
  }]