vue-router.esm.js?ccee:1905 <failed to convert exception to string> 解決: next('/')會死循環。 應該:vue
router.beforeEach((to, from, next) => { // 若是定義了beforeEach,沒有next,訪問將空白。 if (to.path !== '/') { return next('/') } next() }