首页 > 其他分享> > 路由守卫判断meta中是否有值 路由守卫判断meta中是否有值 2020-05-08 11:51:36 作者:互联网 to.matched.some(record => record.meta.requiresAuth); 路由守卫 看下 es6的 some方法。 这里的意思是,to.matched 的数组中,如果在mate中有requiresAuth 那么就返回true,否则会返回false; 标签:有值,some,record,requiresAuth,meta,路由,matched 来源: https://www.cnblogs.com/ygyy/p/12849618.html