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

const route = [
    {
        path: '/formworkErection',
        component: Layout,
        redirect: '/formworkErection/appAdmin/index',
        meta: { title: '广告变现', icon: 'iconfont icon-guanggao' },
        children: [
            {
                path: 'placementAdmin/index',
                name: 'placementAdmin',
                component: createNameComponent(() => import('@/views/main/formworkErection/placementAdmin.vue')),
                meta: { title: '广告位管理' },
            },
            {
                path: 'adPlatformAdmin/index',
                name: 'adPlatformAdmin',
                component: createNameComponent(() => import('@/views/main/formworkErection/adPlatformAdmin.vue')),
                meta: { title: '广告平台管理' },
            },
            /* {
                path: 'adSourceAdmin/index',
                name: 'adSourceAdmin',
                component: createNameComponent(() => import('@/views/main/formworkErection/adSourceAdmin.vue')),
                meta: { title: '广告源管理' },
            }, */
        ],
    }
]

export default route