import {
  RouteView
} from '@/layouts'

export default [{
  path: '/address',
  component: RouteView,
  name: 'address',
  redirect: '/address/index',
  meta: {
    title: '材料邮寄地址',
    icon: 'bar-chart'
  },
  children: [{
    path: '/address/index',
    name: 'AddressIndex',
    component: () => import(/* webpackChunkName: "order" */ '@/views/address/Index'),
    meta: {
      title: '地址列表',
      icon: 'bars'
    }
  }, {
    path: '/address/create',
    name: 'AddressCreate',
    hidden: true,
    component: () => import(/* webpackChunkName: "order" */ '@/views/address/Create'),
    meta: {
      title: '添加收货地址',
      icon: 'bars'
    }
  }, {
    path: '/address/edit',
    name: 'AddressEdit',
    hidden: true,
    component: () => import(/* webpackChunkName: "order" */ '@/views/address/Edit'),
    meta: {
      title: '编辑收货地址',
      icon: 'bars'
    }
  }]
}]
