解决编程式路由往同一地址跳转时会报错的情况
Uncaught (in promise) Error: Navigation cancelled from "xxx" to "xxx" with a new navigation.
解决:在router文件夹下等index.js文件中写入
// router文件夹下等index.js文件中写入
//解决编程式路由往同一地址跳转时会报错的情况
const originalPush = VueRouter.prototype.push
const originalReplace = VueRouter.prototype.replace
//push
VueRouter.prototype
修复Vue路由重复导航错误

最低0.47元/天 解锁文章
6708

被折叠的 条评论
为什么被折叠?



