导航故障报错
![](https://i-blog.csdnimg.cn/blog_migrate/48e566872860ccfb921f1b0c5c22ad95.png)
解决方案
路由的router/index.ts文件中
const oringpush = VueRouter.prototype.push
VueRouter.prototype.push = async function push(to) {
return oringpush.call<VueRouter, [RawLocation], Promise<Route>>(this, to).catch(error => error);
}
导航故障报错
解决方案
路由的router/index.ts文件中
const oringpush = VueRouter.prototype.push
VueRouter.prototype.push = async function push(to) {
return oringpush.call<VueRouter, [RawLocation], Promise<Route>>(this, to).catch(error => error);
}