![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue-router 路由
The dream is near
这个作者很懒,什么都没留下…
展开
-
设置路由后,页面仍然空白的问题 Cannot read property ‘requestContent‘ of undefined
redirect的地址要另外写一个,不然路由无法跳转过去原创 2021-03-11 15:03:06 · 3372 阅读 · 0 评论 -
Navigating to current location ("/user") is not allowed"
错误原因:点击的所要跳转的路由和当前是相同的。如果没有向router.push提供回调,错误只会发送到全局路由器错误处理程序。现在,因为推送和替换都返回一个承诺,如果导航失败(任何取消导航的操作,如next(false)或next(’/other ')也计算在内)没有被捕获,您将在控制台中看到一个错误,因为该承诺拒绝没有被捕获。解决方法:重写push方法,加上catch函数this.$rou...原创 2020-04-11 14:10:38 · 459 阅读 · 0 评论