路由验证用 router.beforeEach( (to, from, next) => { } meta:{requireAuth:true}, 使用meta和路由守卫设置登录权限 转载于:https://www.cnblogs.com/zbx-boke/p/9651755.html