xinggevip

Vue2.x Cli3.x 导航守卫(路由独享守卫)
//路由独享守卫 { path: '/admin', name: 'admin', com...
扫描右侧二维码阅读全文
27
2019/05

Vue2.x Cli3.x 导航守卫(路由独享守卫)

//路由独享守卫
{
    path: '/admin',
    name: 'admin',
    component: () => import('./components/Admin.vue'),
    beforeEnter:((to,from,next) =>{
      alert("还没有登陆,请登录!");
      
    })
},
Last modification:May 27th, 2019 at 10:48 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment