// 静态菜单配置
export const staticMenus = [
  {
    name: 'Config',
    path: '/config',
    hidden: false,
    redirect: '/config/calibration',
    component: 'Layout',
    alwaysShow: true,
    meta: {
      title: '参数配置',
      icon: 'system',
      noCache: false
    },
    children: [
      {
        name: 'ConfigCalibration',
        path: 'calibration',
        hidden: false,
        component: 'config/connectconf/index',
        meta: {
          title: '参数配置',
          icon: 'edit',
          noCache: false
        }
      }
    ]
  },
  {
    name: 'Map',
    path: '/map',
    hidden: false,
    redirect: '/map/maplist',
    component: 'Layout',
    alwaysShow: true,
    meta: {
      title: '地图管理',
      icon: 'map',
      noCache: false
    },
    children: [
      {
        name: 'MapList',
        path: 'maplist',
        hidden: false,
        component: 'map/maplist/index',
        meta: {
          title: '地图列表',
          icon: 'list',
          noCache: false
        }
      }
    ]
  },
  {
    name: 'Devops',
    path: '/devops',
    hidden: false,
    redirect: '/devops/version',
    component: 'Layout',
    alwaysShow: true,
    meta: {
      title: '运维管理',
      icon: 'monitor',
      noCache: false
    },
    children: [
      {
        name: 'Version',
        path: 'version',
        hidden: false,
        component: 'devops/version/index',
        meta: {
          title: '版本管理',
          icon: 'build',
          noCache: false
        }
      },
      {
        name: 'Individuation',
        path: 'individuation',
        hidden: false,
        component: 'devops/individuation/index',
        meta: {
          title: '个性配置',
          icon: 'edit',
          noCache: false
        }
      },
      {
        name: 'Diagnostic',
        path: 'diagnostic',
        hidden: false,
        component: 'devops/diagnostic/index',
        meta: {
          title: '系统诊断',
          icon: 'bug',
          noCache: false
        }
      },
      {
        name: 'Log',
        path: 'log',
        hidden: false,
        component: 'devops/log/index',
        meta: {
          title: '日志查看',
          icon: 'log',
          noCache: false
        }
      }
    ]
  }
]

// 获取静态菜单数据
export function getStaticMenus() {
  return new Promise((resolve) => {
    resolve({
      code: 200,
      msg: '操作成功',
      data: staticMenus
    })
  })
}
