摘要: router.beforeEach((to, from, next) => { if(to.path!='/login' && localStorage.token==undefined){ next('/login') return } next() }) 阅读全文
posted @ 2019-12-19 21:18 武卡卡 阅读(114) 评论(0) 推荐(0) 编辑