1、在 router.js 里面 添加 路由拦截内容: router.beforeEach((to,from,next)=>{ if(to.path '/login'){ next(); }else { let token = localStorage.getItem('userInfo'); if Read More
posted @ 2020-06-18 14:11 秃头的铲屎官 Views(995) Comments(0) Diggs(0) Edit