src/router/index.js @@ -78,7 +78,7 @@ }) // 挂载路由导航守卫 router.beforeEach((to, drom, next) => { router.beforeEach((to, from, next) => { // to 将要访问的路径 // from 代表从哪个路径跳转 // next 是一个函数,表示放行