import { Layout } from '@/utils/routerHelper'
const pre = 'store'

export default {
  path: `/${pre}`,
  component: Layout,
  name: `${pre}`,
  redirect: '/store/list',
  meta: {
    title: '门店管理',
    icon: 'vi-ep:setting',
    alwaysShow: true
  },
  children: [
    {
      path: 'list',
      component: () => import('@/views/Store/list/index.vue'),
      name: `${pre}-list`,
      meta: {
        title: '门店列表'
      }
    },
    {
      path: 'menu',
      component: () => import('@/views/Store/Menu/Menu.vue'),
      name: `${pre}-menu`,
      meta: {
        title: '门店菜单'
      }
    },
    {
      path: 'role',
      component: () => import('@/views/Store/Role/Role.vue'),
      name: `${pre}-role`,
      meta: {
        title: '门店角色'
      }
    },
    {
      path: 'area',
      component: () => import('@/views/Store/area/index.vue'),
      name: `${pre}-area`,
      meta: {
        title: '区域列表'
      }
    }
  ]
}
