1、element-ui自带的图标不显示
build中webpack.base.conf.js内容中有两个woff,将后面那个去掉即可
2、vue-router报错:RangeError: Maximum call stack size exceeded
页面路径都是没有问题的,问题出在拦截配置
router.beforeEach((to, from, next) => {
if (to.matched.some(res => res.meta.requireAuth)) {
if (sessionStorage.getItem('sessiontoken')) {
console.log(1111)
next()
} else {
console.log(22222)
next({
path: '/login',
query: { redirect: to.fullPath }
})
}
} else {
next()
}
})
我浏览器输入的结果,是一直不停的死循环
应该是找不到对应的路由和组件,只需要把注释的路由代码打开,就正常运行了