import Layout from '@/layout/index.vue'
import { createNameComponent } from '../createNode'

const route = [
    {
        path: '/formworkErection',
        component: Layout,
        redirect: '/formworkErection/agencyAdmin/index',
        meta: { title: '广告变现', icon: 'sfont system-zidingyi' },
        children: [
            {
                path: 'agencyAdmin/index',
                name: 'agencyAdmin',
                component: createNameComponent(() => import('@/views/main/formworkErection/appAdmin.vue')),
                meta: { title: '应用管理' },
            },
            {
                path: 'channelType/index',
                name: 'channelType',
                component: createNameComponent(() => import('@/views/main/formworkErection/placementAdmin.vue')),
                meta: { title: '广告位管理' },
            },
            {
                path: 'channelAdmin/index',
                name: 'channelAdmin',
                component: createNameComponent(() => import('@/views/main/formworkErection/channelAdmin.vue')),
                meta: { title: '广告渠道管理' },
            },
        ],
    }
]

export default route