import type { AppRouteModule } from '/@/router/types'
import { LAYOUT } from '/@/router/constant'
const main: AppRouteModule = {
  path: '/main',
  name: 'Main',
  component: LAYOUT,
  redirect: '/permission/front/page',
  meta: {
    orderNo: 1,
    icon: 'ion:key-outline',
    title: '监测数据管理',
  },
  children: [
    {
      path: 'meteorological',
      name: 'MainMeteorological',
      component: () => import('/@/views/main/meteorological/index.vue'),
      meta: {
        title: '气象监测',
      },
    },
    {
      path: 'monitor',
      name: 'MainMonitor',
      component: () => import('/@/views/main/monitor/index.vue'),
      meta: {
        title: '智能监控',
      },
    },
    {
      path: 'soil-monitoring',
      name: 'MainSoilMonitoring',
      component: () => import('/@/views/main/soil-monitoring/index.vue'),
      meta: {
        title: '土壤监控',
      },
    },
    {
      path: 'water-quality',
      name: 'MainWaterQuality',
      component: () => import('/@/views/main/water-quality/index.vue'),
      meta: {
        title: '水质监控',
      },
    },
  ],
}

export default main
