const list = [
  {
    path: "/Login",
    name: "Login",
    component: () => import("../views/Login.vue"),
  },
  {
    path: "/",
    component: () => import("../views/index.vue"),
    children: [
      {
        path: "GOODS_LIST",
        name: "商品列表",
        component: () => import("../views/goods/goods.vue"),
        meta: {
          keepAlive: true,
        },
      },
      {
        path: "ADDGOODS",
        name: "新建商品",
        component: () => import("../views/goods/addgoods/addgoods.vue"),
      },
      {
        path: "EDIT_GOODS",
        name: "修改商品规格",
        component: () => import("../views/goods/editgoods.vue"),
      },
      {
        path: "/",
        redirect: "GOODS_LIST",
      },
      {
        path: "GOODS_TYPE",
        name: "商品种类",
        component: () => import("../views/goodsType/goodsType.vue"),
      },
      {
        path: "GOODS_BRAND",
        name: "商品品牌",
        component: () => import("../views/brand/brand.vue"),
      },
      {
        path: "GOODS_SKU_LOCATION",
        name: "商品货架",
        component: () => import("../views/goods/location.vue"),
      },
      {
        path: "GOODS_COMBINATION",
        name: "组合商品",
        component: () => import("../views/goods/combination.vue"),
      },
      {
        path: "SHOP_MANAGE",
        name: "店铺管理",
        component: () => import("../views/store/store.vue"),
      },
      {
        path: "USER_MANAGE",
        name: "用户管理",
        component: () => import("../views/users/users.vue"),
      },
      {
        path: "ROLE_MANAGE",
        name: "角色管理",
        component: () => import("../views/system/role.vue"),
      },
      {
        path: "SYSTEM_LOG",
        name: "系统日志",
        component: () => import("../views/logs/logs.vue"),
      },
      {
        path: "GOODS_LOG",
        name: "商品记录",
        component: () => import("../views/logs/record.vue"),
      },
      {
        path: "PLAT_ORDER_LIST",
        name: "订单列表",
        component: () => import("../views/plat/orderList.vue"),
      },
      {
        path: "PLAT_GOODS_LIST",
        name: "货品列表",
        component: () => import("../views/plat/goodsList.vue"),
      },
      {
        path: "GROUP_MANAGEMENT",
        name: "团购管理",
        component: () => import("../views/group/group.vue"),
      },
      {
        path: "GROUP_GOODS_ADD",
        name: "团购商品新增",
        component: () => import("../views/group/addGroup.vue"),
      },
      {
        path: "GROUP_GOODS_EDIT",
        name: "团购商品修改",
        component: () => import("../views/group/editGroup.vue"),
      },
    ],
  },
];

export default list;
