import layoutHeaderAside from '@/layout/header-aside'

const meta = { requiresAuth: true }

export default {
    path : '/electric',
    name : 'electric',
    meta,
    redirect: { name: 'electric-eleinfo'},
    component: layoutHeaderAside,
    children : (pre =>[
        {path: 'eleinfo',name:`${pre}eleinfo`,component: ()=>import('@/views/electric/eleinfo'), meta: { meta, title: '电控信息管理',cache:true } },
        {path: 'buyrecord',name:`${pre}buyrecord`,component: ()=>import('@/views/electric/buyrecord'), meta: { meta, title: '电控购电记录',cache:true } },
    ])('electric-')
}
