Vue动态路由 (验证、页面刷新解决方案) // main.js let whiteRoute = ["/login","/register"] let is_flush = true router.beforeEach((to, from, next) =>