路由实现登录验证

   路由验证用  router.beforeEach( (to, from, next) => {  } 
meta:{requireAuth:true},  

使用meta和路由守卫设置登录权限

猜你喜欢

转载自www.cnblogs.com/zbx-boke/p/9651755.html