Vue Router warn The “next“ callback was called more than once in one navigation guard
问题:问题代码:router.beforeEach(async(to,from,next)=>{consttoken=Cookies.get('token');next();if(to.path==='/login'||to.path==='/'){next();}else{if(token){next();}else{console.log('pmsout');next('/login');}}