
interface PageInfo {
  id: number;
  path: string;
  name: string;
  parentId: number;
  icon: string;
}

// [
//   { "id": 1, "path": "/welcome", "name": "欢迎", "parentId": 0, "icon": "SmileOutlined" },
//   { "id": 2, "path": "/system", "name": "系统管理", "parentId": 0, "icon": "SettingOutlined" },
//   { "id": 3, "path": "/system/user/list", "name": "用户列表", "parentId": 2, "icon": "" },
//   { "id": 4, "path": "/system/role/list", "name": "角色列表", "parentId": 2, "icon": "" },
//   { "id": 5, "path": "/system/menu/list", "name": "菜单列表", "parentId": 2, "icon": "" },
//   { "id": 6, "path": "/system/dept/list", "name": "机构列表", "parentId": 2, "icon": "" },
//   { "id": 7, "path": "/system/dict/list", "name": "字典列表", "parentId": 2, "icon": "" },
//   { "id": 8, "path": "/log", "name": "日志管理", "parentId": 0, "icon": "DeleteOutlined" },
//   { "id": 9, "path": "/log/loginLog/list", "name": "登录日志", "parentId": 8, "icon": "" },
//   { "id": 10, "path": "/log/sysLog/list", "name": "操作日志", "parentId": 8, "icon": "" },
//   { "id": 11, "path": "/ums", "name": "会员管理", "parentId": 0, "icon": "FrownOutlined" },
//   { "id": 12, "path": "/ums/member/list", "name": "会员列表", "parentId": 11, "icon": "" },
//   { "id": 13, "path": "/ums/memberLevel/list", "name": "会员等级", "parentId": 11, "icon": "" },
//   { "id": 16, "path": "/pms", "name": "商品管理", "parentId": 0, "icon": "GiftOutlined" },
//   { "id": 17, "path": "/pms/productCategory/list", "name": "商品分类", "parentId": 16, "icon": "" },
//   { "id": 18, "path": "/pms/productBrand/list", "name": "商品品牌", "parentId": 16, "icon": "" },
//   { "id": 19, "path": "/pms/product/list", "name": "商品列表", "parentId": 16, "icon": "" },
//   { "id": 20, "path": "/oms", "name": "订单管理", "parentId": 0, "icon": "DollarCircleOutlined" },
//   { "id": 21, "path": "/oms/orderSetting/list", "name": "订单设置", "parentId": 20, "icon": "" },
//   { "id": 22, "path": "/oms/orderReturnApply/list", "name": "退货列表", "parentId": 20, "icon": "" },
//   { "id": 23, "path": "/oms/orderReturnReason/list", "name": "退货原因", "parentId": 20, "icon": "" },
//   { "id": 24, "path": "/oms/order/list", "name": "订单列表", "parentId": 20, "icon": "" },
//   { "id": 25, "path": "/sms", "name": "营销管理", "parentId": 0, "icon": "AlertOutlined" },
//   { "id": 26, "path": "/sms/flashPromotion/list", "name": "秒杀活动", "parentId": 25, "icon": "" },
//   { "id": 27, "path": "/sms/homeBrand/list", "name": "品牌推荐", "parentId": 25, "icon": "" },
//   { "id": 28, "path": "/sms/homeNewProduct/list", "name": "新品推荐", "parentId": 25, "icon": "" },
//   { "id": 29, "path": "/sms/homeRecommendProduct/list", "name": "人气推荐", "parentId": 25, "icon": "" },
//   { "id": 30, "path": "/sms/homeRecommendSubject/list", "name": "专题推荐", "parentId": 25, "icon": "" },
//   { "id": 31, "path": "/sms/homeAdvertise/list", "name": "广告列表", "parentId": 25, "icon": "" },
//   { "id": 32, "path": "/sms/coupon/list", "name": "优惠券", "parentId": 25, "icon": "" },
//   { "id": 33, "path": "/system/job/list", "name": "职位列表", "parentId": 2, "icon": "" },
//   { "id": 109, "path": "/pms/attribute/list", "name": "属性选项", "parentId": 16, "icon": "" },
//   { "id": 113, "path": "/pms/attributecategory/list", "name": "属性分类", "parentId": 16, "icon": "" },
// ]

const defMenu = [
  { "id": 2, "path": "/system", "name": "系统管理", "parentId": 0, "icon": "SettingOutlined" },
  { "id": 3, "path": "/system/user/list", "name": "用户列表", "parentId": 2, "icon": "" },
  { "id": 4, "path": "/system/role/list", "name": "角色列表", "parentId": 2, "icon": "" },
  { "id": 5, "path": "/system/menu/list", "name": "菜单列表", "parentId": 2, "icon": "" },
  { "id": 6, "path": "/system/dept/list", "name": "机构列表", "parentId": 2, "icon": "" },
  { "id": 7, "path": "/system/dict/list", "name": "字典列表", "parentId": 2, "icon": "" },

  { "id": 8, "path": "/log", "name": "日志管理", "parentId": 0, "icon": "DeleteOutlined" },
  { "id": 9, "path": "/log/loginLog/list", "name": "登录日志", "parentId": 8, "icon": "" },
  { "id": 10, "path": "/log/sysLog/list", "name": "操作日志", "parentId": 8, "icon": "" },
  { "id": 11, "path": "/ums", "name": "会员管理", "parentId": 0, "icon": "FrownOutlined" },
  { "id": 12, "path": "/ums/member/list", "name": "会员列表", "parentId": 11, "icon": "" },
  { "id": 13, "path": "/ums/memberLevel/list", "name": "会员等级", "parentId": 11, "icon": "" },
  { "id": 16, "path": "/pms", "name": "商品管理", "parentId": 0, "icon": "GiftOutlined" },
  { "id": 17, "path": "/pms/productCategory/list", "name": "商品分类", "parentId": 16, "icon": "" },
  { "id": 18, "path": "/pms/productBrand/list", "name": "商品品牌", "parentId": 16, "icon": "" },
  { "id": 19, "path": "/pms/product/list", "name": "商品列表", "parentId": 16, "icon": "" },
  { "id": 20, "path": "/oms", "name": "订单管理", "parentId": 0, "icon": "DollarCircleOutlined" },
  { "id": 21, "path": "/oms/orderSetting/list", "name": "订单设置", "parentId": 20, "icon": "" },
  { "id": 22, "path": "/oms/orderReturnApply/list", "name": "退货列表", "parentId": 20, "icon": "" },
  { "id": 23, "path": "/oms/orderReturnReason/list", "name": "退货原因", "parentId": 20, "icon": "" },
  { "id": 24, "path": "/oms/order/list", "name": "订单列表", "parentId": 20, "icon": "" },
  { "id": 25, "path": "/sms", "name": "营销管理", "parentId": 0, "icon": "AlertOutlined" },
  { "id": 26, "path": "/sms/flashPromotion/list", "name": "秒杀活动", "parentId": 25, "icon": "" },
  { "id": 27, "path": "/sms/homeBrand/list", "name": "品牌推荐", "parentId": 25, "icon": "" },
  { "id": 28, "path": "/sms/homeNewProduct/list", "name": "新品推荐", "parentId": 25, "icon": "" },
  { "id": 29, "path": "/sms/homeRecommendProduct/list", "name": "人气推荐", "parentId": 25, "icon": "" },
  { "id": 30, "path": "/sms/homeRecommendSubject/list", "name": "专题推荐", "parentId": 25, "icon": "" },
  { "id": 31, "path": "/sms/homeAdvertise/list", "name": "广告列表", "parentId": 25, "icon": "" },
  { "id": 32, "path": "/sms/coupon/list", "name": "优惠券", "parentId": 25, "icon": "" },
  { "id": 33, "path": "/system/job/list", "name": "职位列表", "parentId": 2, "icon": "" },
  { "id": 109, "path": "/pms/attribute/list", "name": "属性选项", "parentId": 16, "icon": "" },
  { "id": 113, "path": "/pms/attributecategory/list", "name": "属性分类", "parentId": 16, "icon": "" },
]

const menuTree = [



  { "id": 1, "path": "/welcome", "name": "欢迎", "parentId": 0, "icon": "SmileOutlined" },


  { "id": 100, "path": "/article/news/list", "name": "News数据库", "parentId": 0, "icon": "DatabaseOutlined" },
  { "id": 101, "path": "/article/qa/list", "name": "Q&A数据", "parentId": 0, "icon": "BulbOutlined" },

  { "id": 102, "path": "/article/subscribe/list", "name": "订阅管理", "parentId": 0, "icon": "FileAddOutlined" },
  { "id": 103, "path": "/article/tag/list", "name": "标签管理", "parentId": 0, "icon": "TagsOutlined" },
  { "id": 104, "path": "/umsV2/member/list", "name": "客户管理", "parentId": 0, "icon": "UserOutlined" },

  { "id": 105, "path": "/systemV2/role/list", "name": "权限管理", "parentId": 0, "icon": "KeyOutlined" },
  { "id": 106, "path": "/systemV2/user/list", "name": "用户管理", "parentId": 0, "icon": "UsergroupDeleteOutlined" },

  // { "id": 109, "path": "/article/edit/1", "name": "编辑器", "parentId": 0, "icon": "DatabaseOutlined" },
  // { "id": 110, "path": "/article/add", "name": "新增文章", "parentId": 0, "icon": "DatabaseOutlined" },


  // ...defMenu,
]
// [
// {
//   "id": 1,
//   "path": "/welcome",
//   "name": "欢迎",
//   "parentId": 0,
//   "icon": "SmileOutlined"
// },
// {
//   "id": 2,
//   "path": "/system",
//   "name": "系统管理",
//   "parentId": 0,
//   "icon": "SettingOutlined"
// },
// {
//   "id": 3,
//   "path": "/system/user/list",
//   "name": "用户列表",
//   "parentId": 2,
//   "icon": ""
// },
// {
//   "id": 4,
//   "path": "/system/role/list",
//   "name": "角色列表",
//   "parentId": 2,
//   "icon": ""
// },
// {
//   "id": 5,
//   "path": "/system/menu/list",
//   "name": "菜单列表",
//   "parentId": 2,
//   "icon": ""
// },
// {
//   "id": 6,
//   "path": "/system/dept/list",
//   "name": "机构列表",
//   "parentId": 2,
//   "icon": ""
// },
// {
//   "id": 7,
//   "path": "/system/dict/list",
//   "name": "字典列表",
//   "parentId": 2,
//   "icon": ""
// },
// {
//   "id": 8,
//   "path": "/log",
//   "name": "日志管理",
//   "parentId": 0,
//   "icon": "DeleteOutlined"
// },
// {
//   "id": 9,
//   "path": "/log/loginLog/list",
//   "name": "登录日志",
//   "parentId": 8,
//   "icon": ""
// },
// {
//   "id": 10,
//   "path": "/log/sysLog/list",
//   "name": "操作日志",
//   "parentId": 8,
//   "icon": ""
// },
// {
//   "id": 11,
//   "path": "/ums",
//   "name": "会员管理",
//   "parentId": 0,
//   "icon": "FrownOutlined"
// },
// {
//   "id": 12,
//   "path": "/ums/member/list",
//   "name": "会员列表",
//   "parentId": 11,
//   "icon": ""
// },
// {
//   "id": 13,
//   "path": "/ums/memberLevel/list",
//   "name": "会员等级",
//   "parentId": 11,
//   "icon": ""
// },
// {
//   "id": 16,
//   "path": "/pms",
//   "name": "商品管理",
//   "parentId": 0,
//   "icon": "GiftOutlined"
// },
// {
//   "id": 17,
//   "path": "/pms/productCategory/list",
//   "name": "商品分类",
//   "parentId": 16,
//   "icon": ""
// },
// {
//   "id": 18,
//   "path": "/pms/productBrand/list",
//   "name": "商品品牌",
//   "parentId": 16,
//   "icon": ""
// },
// {
//   "id": 19,
//   "path": "/pms/product/list",
//   "name": "商品列表",
//   "parentId": 16,
//   "icon": ""
// },
// {
//   "id": 20,
//   "path": "/oms",
//   "name": "订单管理",
//   "parentId": 0,
//   "icon": "DollarCircleOutlined"
// },
// {
//   "id": 21,
//   "path": "/oms/orderSetting/list",
//   "name": "订单设置",
//   "parentId": 20,
//   "icon": ""
// },
// {
//   "id": 22,
//   "path": "/oms/orderReturnApply/list",
//   "name": "退货列表",
//   "parentId": 20,
//   "icon": ""
// },
// {
//   "id": 23,
//   "path": "/oms/orderReturnReason/list",
//   "name": "退货原因",
//   "parentId": 20,
//   "icon": ""
// },
// {
//   "id": 24,
//   "path": "/oms/order/list",
//   "name": "订单列表",
//   "parentId": 20,
//   "icon": ""
// },
// {
//   "id": 25,
//   "path": "/sms",
//   "name": "营销管理",
//   "parentId": 0,
//   "icon": "AlertOutlined"
// },
// {
//   "id": 26,
//   "path": "/sms/flashPromotion/list",
//   "name": "秒杀活动",
//   "parentId": 25,
//   "icon": ""
// },
// {
//   "id": 27,
//   "path": "/sms/homeBrand/list",
//   "name": "品牌推荐",
//   "parentId": 25,
//   "icon": ""
// },
// {
//   "id": 28,
//   "path": "/sms/homeNewProduct/list",
//   "name": "新品推荐",
//   "parentId": 25,
//   "icon": ""
// },
// {
//   "id": 29,
//   "path": "/sms/homeRecommendProduct/list",
//   "name": "人气推荐",
//   "parentId": 25,
//   "icon": ""
// },
// {
//   "id": 30,
//   "path": "/sms/homeRecommendSubject/list",
//   "name": "专题推荐",
//   "parentId": 25,
//   "icon": ""
// },
// {
//   "id": 31,
//   "path": "/sms/homeAdvertise/list",
//   "name": "广告列表",
//   "parentId": 25,
//   "icon": ""
// },
// {
//   "id": 32,
//   "path": "/sms/coupon/list",
//   "name": "优惠券",
//   "parentId": 25,
//   "icon": ""
// },
// {
//   "id": 33,
//   "path": "/system/job/list",
//   "name": "职位列表",
//   "parentId": 2,
//   "icon": ""
// },
// {
//   "id": 109,
//   "path": "/pms/attribute/list",
//   "name": "属性选项",
//   "parentId": 16,
//   "icon": ""
// },
// {
//   "id": 113,
//   "path": "/pms/attributecategory/list",
//   "name": "属性分类",
//   "parentId": 16,
//   "icon": ""
// }
// ]


export default {
  menuTree,
  "menuTreeVue": [
    {
      "id": 2,
      "parentId": 0,
      "title": "系统管理",
      "path": "/sys",
      "name": "系统管理",
      "icon": "el-icon-setting",
      "redirect": "/sys/userList",
      "component": "Layout",
      "meta": {
        "title": "系统管理",
        "icon": "el-icon-setting"
      }
    },
    {
      "id": 3,
      "parentId": 2,
      "title": "用户列表",
      "path": "userList",
      "name": "用户列表",
      "icon": "el-icon-user",
      "redirect": "",
      "component": "system/user/index",
      "meta": {
        "title": "用户列表",
        "icon": "el-icon-user"
      }
    },
    {
      "id": 4,
      "parentId": 2,
      "title": "角色列表",
      "path": "roleList",
      "name": "角色列表",
      "icon": "el-icon-female",
      "redirect": "",
      "component": "system/role/index",
      "meta": {
        "title": "角色列表",
        "icon": "el-icon-female"
      }
    },
    {
      "id": 5,
      "parentId": 2,
      "title": "菜单列表",
      "path": "resourcesList",
      "name": "菜单列表",
      "icon": "el-icon-postcard",
      "redirect": "",
      "component": "system/resource/index",
      "meta": {
        "title": "菜单列表",
        "icon": "el-icon-postcard"
      }
    },
    {
      "id": 6,
      "parentId": 2,
      "title": "机构列表",
      "path": "deptList",
      "name": "机构列表",
      "icon": "el-icon-bangzhu",
      "redirect": "",
      "component": "system/dept/index",
      "meta": {
        "title": "机构列表",
        "icon": "el-icon-bangzhu"
      }
    },
    {
      "id": 7,
      "parentId": 2,
      "title": "字典列表",
      "path": "dictList",
      "name": "字典列表",
      "icon": "el-icon-delete-location",
      "redirect": "",
      "component": "system/dict/index",
      "meta": {
        "title": "字典列表",
        "icon": "el-icon-delete-location"
      }
    },
    {
      "id": 8,
      "parentId": 0,
      "title": "日志管理",
      "path": "/log",
      "name": "日志管理",
      "icon": "el-icon-delete",
      "redirect": "/log/loginLogList",
      "component": "Layout",
      "meta": {
        "title": "日志管理",
        "icon": "el-icon-delete"
      }
    },
    {
      "id": 9,
      "parentId": 8,
      "title": "登录日志",
      "path": "loginLogList",
      "name": "登录日志",
      "icon": "el-icon-remove-outline",
      "redirect": "",
      "component": "log/loginlog/index",
      "meta": {
        "title": "登录日志",
        "icon": "el-icon-remove-outline"
      }
    },
    {
      "id": 10,
      "parentId": 8,
      "title": "操作日志",
      "path": "sysLogList",
      "name": "操作日志",
      "icon": "el-icon-camera",
      "redirect": "",
      "component": "log/syslog/index",
      "meta": {
        "title": "操作日志",
        "icon": "el-icon-camera"
      }
    },
    {
      "id": 11,
      "parentId": 0,
      "title": "会员管理",
      "path": "/ums",
      "name": "会员管理",
      "icon": "el-icon-headset",
      "redirect": "/ums/memberList",
      "component": "Layout",
      "meta": {
        "title": "会员管理",
        "icon": "el-icon-headset"
      }
    },
    {
      "id": 12,
      "parentId": 11,
      "title": "会员列表",
      "path": "memberList",
      "name": "会员列表",
      "icon": "el-icon-camera",
      "redirect": "",
      "component": "ums/member/index",
      "meta": {
        "title": "会员列表",
        "icon": "el-icon-camera"
      }
    },
    {
      "id": 13,
      "parentId": 11,
      "title": "会员等级",
      "path": "memberLevelList",
      "name": "会员等级",
      "icon": "el-icon-remove-outline",
      "redirect": "",
      "component": "ums/member_level/index",
      "meta": {
        "title": "会员等级",
        "icon": "el-icon-remove-outline"
      }
    },
    {
      "id": 16,
      "parentId": 0,
      "title": "商品管理",
      "path": "/pms",
      "name": "商品管理",
      "icon": "el-icon-coffee",
      "redirect": "/pms/productList",
      "component": "Layout",
      "meta": {
        "title": "商品管理",
        "icon": "el-icon-coffee"
      }
    },
    {
      "id": 17,
      "parentId": 16,
      "title": "商品分类",
      "path": "productCategoryList",
      "name": "商品分类",
      "icon": "el-icon-remove-outline",
      "redirect": "",
      "component": "pms/product_category/index",
      "meta": {
        "title": "商品分类",
        "icon": "el-icon-remove-outline"
      }
    },
    {
      "id": 18,
      "parentId": 16,
      "title": "商品品牌",
      "path": "productBrandList",
      "name": "商品品牌",
      "icon": "el-icon-remove-outline",
      "redirect": "",
      "component": "pms/product_brand/index",
      "meta": {
        "title": "商品品牌",
        "icon": "el-icon-remove-outline"
      }
    },
    {
      "id": 19,
      "parentId": 16,
      "title": "商品列表",
      "path": "productList",
      "name": "商品列表",
      "icon": "el-icon-camera",
      "redirect": "",
      "component": "pms/product/index",
      "meta": {
        "title": "商品列表",
        "icon": "el-icon-camera"
      }
    },
    {
      "id": 20,
      "parentId": 0,
      "title": "订单管理",
      "path": "/oms",
      "name": "订单管理",
      "icon": "el-icon-shopping-cart-full",
      "redirect": "/oms/orderList",
      "component": "Layout",
      "meta": {
        "title": "订单管理",
        "icon": "el-icon-shopping-cart-full"
      }
    },
    {
      "id": 21,
      "parentId": 20,
      "title": "订单设置",
      "path": "orderSetting",
      "name": "订单设置",
      "icon": "el-icon-remove-outline",
      "redirect": "",
      "component": "oms/order_setting/index",
      "meta": {
        "title": "订单设置",
        "icon": "el-icon-remove-outline"
      }
    },
    {
      "id": 22,
      "parentId": 20,
      "title": "退货列表",
      "path": "orderReturnApplyList",
      "name": "退货列表",
      "icon": "el-icon-remove-outline",
      "redirect": "",
      "component": "oms/order_return_apply/index",
      "meta": {
        "title": "退货列表",
        "icon": "el-icon-remove-outline"
      }
    },
    {
      "id": 23,
      "parentId": 20,
      "title": "退货原因",
      "path": "orderReturnReasonList",
      "name": "退货原因",
      "icon": "el-icon-remove-outline",
      "redirect": "",
      "component": "oms/order_return_reason/index",
      "meta": {
        "title": "退货原因",
        "icon": "el-icon-remove-outline"
      }
    },
    {
      "id": 24,
      "parentId": 20,
      "title": "订单列表",
      "path": "orderList",
      "name": "订单列表",
      "icon": "el-icon-camera",
      "redirect": "",
      "component": "oms/order/index",
      "meta": {
        "title": "订单列表",
        "icon": "el-icon-camera"
      }
    },
    {
      "id": 25,
      "parentId": 0,
      "title": "营销管理",
      "path": "/sms",
      "name": "营销管理",
      "icon": "el-icon-cold-drink",
      "redirect": "/sms/flashPromotionList",
      "component": "Layout",
      "meta": {
        "title": "营销管理",
        "icon": "el-icon-cold-drink"
      }
    },
    {
      "id": 26,
      "parentId": 25,
      "title": "秒杀活动",
      "path": "flashPromotionList",
      "name": "秒杀活动",
      "icon": "el-icon-camera",
      "redirect": "",
      "component": "sms/flash_promotion/index",
      "meta": {
        "title": "秒杀活动",
        "icon": "el-icon-camera"
      }
    },
    {
      "id": 27,
      "parentId": 25,
      "title": "品牌推荐",
      "path": "homeBrandList",
      "name": "品牌推荐",
      "icon": "el-icon-remove-outline",
      "redirect": "",
      "component": "sms/home_brand/index",
      "meta": {
        "title": "品牌推荐",
        "icon": "el-icon-remove-outline"
      }
    },
    {
      "id": 28,
      "parentId": 25,
      "title": "新品推荐",
      "path": "homeNewProductList",
      "name": "新品推荐",
      "icon": "el-icon-remove-outline",
      "redirect": "",
      "component": "sms/home_new_product/index",
      "meta": {
        "title": "新品推荐",
        "icon": "el-icon-remove-outline"
      }
    },
    {
      "id": 29,
      "parentId": 25,
      "title": "人气推荐",
      "path": "homeRecommendProductList",
      "name": "人气推荐",
      "icon": "el-icon-remove-outline",
      "redirect": "",
      "component": "sms/home_recommend_product/index",
      "meta": {
        "title": "人气推荐",
        "icon": "el-icon-remove-outline"
      }
    },
    {
      "id": 30,
      "parentId": 25,
      "title": "专题推荐",
      "path": "homeRecommendSubjectList",
      "name": "专题推荐",
      "icon": "el-icon-remove-outline",
      "redirect": "",
      "component": "sms/home_recommend_subject/index",
      "meta": {
        "title": "专题推荐",
        "icon": "el-icon-remove-outline"
      }
    },
    {
      "id": 31,
      "parentId": 25,
      "title": "广告列表",
      "path": "homeAdvertiseList",
      "name": "广告列表",
      "icon": "el-icon-remove-outline",
      "redirect": "",
      "component": "sms/home_advertise/index",
      "meta": {
        "title": "广告列表",
        "icon": "el-icon-remove-outline"
      }
    },
    {
      "id": 32,
      "parentId": 25,
      "title": "优惠券",
      "path": "couponList",
      "name": "优惠券",
      "icon": "el-icon-remove-outline",
      "redirect": "",
      "component": "sms/coupon/index",
      "meta": {
        "title": "优惠券",
        "icon": "el-icon-remove-outline"
      }
    },
    {
      "id": 33,
      "parentId": 2,
      "title": "职位列表",
      "path": "jobList",
      "name": "职位列表",
      "icon": "el-icon-delete-location",
      "redirect": "",
      "component": "system/job/index",
      "meta": {
        "title": "职位列表",
        "icon": "el-icon-delete-location"
      }
    }
  ]
}