import request from '@/utils/request'

// 获取路由
export const getRouters = () => {
  return new Promise(resolve => {
    resolve({
      data: {
        menu: [],
        button: [],
      }
    })
  })
  // return request({
  //   url: '/djl-account/pc/menu/info',
  //   method: 'get'
  // })
}
/*export const getRouters = [

  {
    "name": "Project",
    "path": "/project",
    "hidden": false,
    "redirect": "noRedirect",
    "component": "Layout",
    "alwaysShow": true,
    "meta": {
      "title": "项目管理",
      "icon": "monitor",
      "noCache": false,
      "link": null
    },
    "children": [
      {
        "name": "project_project",
        "path": "",
        "hidden": false,
        "component": "project/dispatch/index",
        "meta": {
          "title": "项目属性增减修改",
          "icon": "online",
          "noCache": false,
          "link": null
        }
      },
      {
        "name": "project_projectAdd",
        "path": "/project/dispatch/projectAdd",
        "hidden": true,
        "component": "project/dispatch/projectAdd",
        "meta": {
          "title": "项目新增",
          "icon": "online",
          "noCache": false,
          "link": null
        }
      },
      {
        "name": "project_projectDetail",
        "path": "/project/dispatch/projectDetail",
        "hidden": true,
        "component": "project/dispatch/projectDetail",
        "meta": {
          "title": "项目详情",
          "icon": "online",
          "noCache": false,
          "link": null
        }
      },
      {
        "name": "project_address",
        "path": "/project/dispatch/address/address",
        "hidden": true,
        "component": "project/dispatch/address/address",
        "meta": {
          "title": "接站地维护",
          "icon": "online",
          "noCache": false,
          "link": null
        }
      },
      {
        "name": "project_coordinate",
        "path": "/project/dispatch/address/coordinate",
        "hidden": true,
        "component": "project/dispatch/address/coordinate",
        "meta": {
          "title": "坐标点维护",
          "icon": "online",
          "noCache": false,
          "link": null
        }
      },
    ]
  },

  {
    "name": "Contract",
    "path": "/contract",
    "hidden": false,
    "redirect": "noRedirect",
    "component": "Layout",
    "alwaysShow": true,
    "meta": {
      "title": "合同管理",
      "icon": "monitor",
      "noCache": false,
      "link": null
    },
    "children": [
      {
        "name": "contract_contract",
        "path": "",
        "hidden": false,
        "component": "contract/contract/index",
        "meta": {
          "title": "合同记录",
          "icon": "online",
          "noCache": false,
          "link": null
        }
      },
      {
        "name": "contract_sign",
        "path": "contract/contract_sign/index",
        "hidden": false,
        "component": "contract/contract_sign/index",
        "meta": {
          "title": "签署记录",
          "icon": "online",
          "noCache": false,
          "link": null
        }
      },
      {
        "name": "contract_template",
        "path": "contract/contract_template/index",
        "hidden": false,
        "component": "contract/contract_template/index",
        "meta": {
          "title": "合同模板",
          "icon": "online",
          "noCache": false,
          "link": null
        }
      },
      {
        "name": "contract_templateAdd",
        "path": "/contract/contract_template/templateAdd",
        "hidden": true,
        "component": "contract/contract_template/templateAdd",
        "meta": {
          "title": "合同模板编辑",
          "icon": "online",
          "noCache": false,
          "link": null
        }
      }
    ]
  },

  {
    "name": "Recruit",
    "path": "/recruit",
    "hidden": false,
    "redirect": "noRedirect",
    "component": "Layout",
    "alwaysShow": true,
    "meta": {
      "title": "招聘管理",
      "icon": "monitor",
      "noCache": false,
      "link": null
    },
    "children": [
      {
        "name": "recruit_personnel",
        "path": "recruit/dispatch_personnel/index",
        "hidden": false,
        "component": "recruit/dispatch_personnel/index",
        "meta": {
          "title": "雇员管理",
          "icon": "online",
          "noCache": false,
          "link": null
        }
      },
      {
        "name": "recruit_bycar",
        "path": "recruit/dispatch_bycar/index",
        "hidden": false,
        "component": "recruit/dispatch_bycar/index",
        "meta": {
          "title": "出发反馈",
          "icon": "online",
          "noCache": false,
          "link": null
        }
      },
      {
        "name": "recruit_arrived",
        "path": "recruit/dispatch_arrived/index",
        "hidden": false,
        "component": "recruit/dispatch_arrived/index",
        "meta": {
          "title": "接站反馈",
          "icon": "online",
          "noCache": false,
          "link": null
        }
      },
      {
        "name": "recruit_interview",
        "path": "recruit/dispatch_interview/index",
        "hidden": false,
        "component": "recruit/dispatch_interview/index",
        "meta": {
          "title": "面试反馈",
          "icon": "online",
          "noCache": false,
          "link": null
        }
      },
      {
        "name": "recruit_interview_result",
        "path": "recruit/dispatch_interview_result/index",
        "hidden": false,
        "component": "recruit/dispatch_interview_result/index",
        "meta": {
          "title": "面试结果",
          "icon": "online",
          "noCache": false,
          "link": null
        }
      },
      {
        "name": "recruit_entry",
        "path": "recruit/dispatch_entry/index",
        "hidden": false,
        "component": "recruit/dispatch_entry/index",
        "meta": {
          "title": "入职反馈",
          "icon": "online",
          "noCache": false,
          "link": null
        }
      }
    ]
  },

  {
    "name": "Manufacturer",
    "path": "/Manufacturer",
    "hidden": false,
    "redirect": "noRedirect",
    "component": "Layout",
    "alwaysShow": false,
    "meta": {
      "title": "",
      "icon": "system",
      "noCache": false,
      "link": null
    },
    "children": [
      {
        "name": "manufacturer",
        "path": "",
        "hidden": false,
        "redirect": "noRedirect",
        "component": "role/manufacturer/index",
        "alwaysShow": false,
        "meta": {
          "title": "客户（厂商）管理",
          "icon": "monitor",
          "noCache": false,
          "link": null
        },
      },
    ]
  },
  {
    "name": "Other",
    "path": "/other",
    "hidden": false,
    "redirect": "noRedirect",
    "component": "Layout",
    "alwaysShow": true,
    "meta": {
      "title": "其他功能",
      "icon": "monitor",
      "noCache": false,
      "link": null
    },
    "children": [
      {
        "name": "pwd",
        "path": "",
        "hidden": false,
        "component": "account/change_pwd/index",
        "meta": {
          "title": "修改密码",
          "icon": "online",
          "noCache": false,
          "link": null
        }
      },
    ]
  },
  {
    "name": "Message",
    "path": "/message",
    "hidden": false,
    "redirect": "noRedirect",
    "component": "Layout",
    "alwaysShow": false,
    "meta": {
      "title": "",
      "icon": "system",
      "noCache": false,
      "link": null
    },
    "children": [
      {
        "name": "message",
        "path": "",
        "hidden": false,
        "redirect": "noRedirect",
        "component": "message/index",
        "alwaysShow": false,
        "meta": {
          "title": "通知消息管理",
          "icon": "monitor",
          "noCache": false,
          "link": null
        },
      },
      {
        "name": "send",
        "path": "message-send",
        "hidden": true,
        "redirect": "noRedirect",
        "component": "message/send",
        "alwaysShow": false,
        "meta": {
          "title": "发送消息",
          "icon": "monitor",
          "noCache": false,
          "link": null
        },
      },
    ]
  },
  {
    "name": "Personnel",
    "path": "/channel_personnel",
    "hidden": false,
    "redirect": "noRedirect",
    "component": "Layout",
    "alwaysShow": true,
    "meta": {
      "title": "雇员管理",
      "icon": "monitor",
      "noCache": false,
      "link": null
    },
    "children": [
      {
        "name": "channel_personnel",
        "path": "",
        "hidden": false,
        "component": "role/channel_personnel/index",
        "meta": {
          "title": "员工入离职管理",
          "icon": "user",
          "noCache": false,
          "link": null
        }
      },
      {
        "name": "details",
        "path": "channel_personnel-details:id",
        "hidden": true,
        "component": "role/channel_personnel/details",
        "meta": {
          "title": "雇员详情",
          "icon": "user",
          "noCache": false,
          "link": null
        }
      },
    ]
  },
  {
    "name": "Account",
    "path": "/account",
    "hidden": false,
    "redirect": "noRedirect",
    "component": "Layout",
    "alwaysShow": true,
    "meta": {
      "title": "账号管理",
      "icon": "monitor",
      "noCache": false,
      "link": null
    },
    "children": [
      {
        "name": "dispatch",
        "path": "dispatch",
        "hidden": false,
        "component": "account/dispatch_account/index",
        "meta": {
          "title": "员工账号",
          "icon": "user",
          "noCache": false,
          "link": null
        }
      },
      {
        "name": "channel",
        "path": "channel",
        "hidden": false,
        "component": "account/channel_account/index",
        "meta": {
          "title": "渠道账号",
          "icon": "user",
          "noCache": false,
          "link": null
        }
      }*/
