VUE2 router

63 阅读1分钟

// 路由的前置守卫 router.beforeEach 静态路由中添加动态路由后,应该使用 next(to.path), 否则会使刷新页面之后 权限消失,这属于一个vue-router的已知缺陷