import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';

const product: AppRouteModule = {
  path: '/product',
  name: 'Product',
  component: LAYOUT,
  redirect: '/product/regionalSpot',
  meta: {
    hideChildrenInMenu: false,
    orderNo: 500,
    icon: 'ion:grid-outline',
    title: '商品管理',
  },
  children: [
    {
      path: 'regionalSpot',
      name: 'RegionalSpot',
      component: () => import('/@/views/regionalSpotManage/index.vue'),
      meta: {
        title: '区域现货管理',
      },
    },
    {
      path: 'taskCenter',
      name: 'TaskCenter',
      component: () => import('/@/views/regionalSpotManage/taskCenter.vue'),
      meta: {
        title: '任务中心',
      },
    }
  ],
};

export default product;
