摘要: 1、main.js设置拦截器 router.beforeEach(function (to,from,next) { if (to.meta.requireAuth) { if (store.state.token) { next() } else { next({name: 'log',query 阅读全文
posted @ 2019-03-13 12:43 子谦0618 阅读(311) 评论(0) 推荐(0) 编辑