VUE vue文章/教程 白墨 • 2023年3月9日 • 0 Comment router.beforeEach((to, from, next) => { if(to.path!=’/login’ && localStorage.token==undefined){ next(‘/login’) return } next() })