SOURCE

console 命令行工具 X clear

                    
>
console
<!-- 
    在守卫中的next,next()是放行

    next('/login') 注意此代码不是放行的意思。
    beforeEach((to, form, next) => {
        beforeEach(('/login', form, next) => {
            beforeEach(('/login', from, next) => {
                ....递归死了
            })
        })
    })

    next('/login')的意思是,结束当前的导航,进入路由之后的守卫不会执行,然后开始一个新的
    导航。会继续进入beforeEach守卫。如果没有next()放行,则会死循环。

 -->