vue 路由跳转错误:Uncaught (in promise) Error: Redirected when going from “...“ to “...“ via a navigation
https://blog.csdn.net/weixin_46873254/article/details/119358833
·
https://blog.csdn.net/weixin_46873254/article/details/119358833
import VueRouter from 'vue-router'
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location, resolve, reject) {
if ( resolve || reject ) return originalPush.call(this, location, resolve, reject)
return originalPush.call(this, location).catch(err => err)
}
更多推荐
已为社区贡献5条内容
所有评论(0)