const routers = [
    {
        path: '/',
        name:'home',
        component: (resolve) => require(['./views/index.vue'], resolve)
    },
    {
        path: '/login',
        name:'login',
        component: (resolve) => require(['./views/login/login.vue'], resolve)
    },
    // {
    //     path: '/register',
    //     name:'register',
    //     component: (resolve) => require(['./views/register/register.vue'], resolve)
    // },
    {
        path: '/admin',
        meta: {
            roles: ['admin'] //该页面可访问的权限
        },
        component: { template: '<div>admin页面1</div>' }
    },
    {
        path: '/boos',
        meta: {
            roles: ['boos'] //该页面可访问的权限
        },
        component: { template: '<div>boos页面1</div>' },
    },
    { path: '*', component: { template: '<div>404未找到</div>' } }
];
export default routers;