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()
}
})
我瀏覽器輸入的結果,是一直不停的死循環
應該是找不到對應的路由和組件,只需要把註釋的路由代碼打開,就正常運行了