路由跳转出错

88 阅读1分钟

NavigationDuplicated: Avoided redundant navigation to current location

原因:因为路由重复(具体细节不太清楚)

解决办法: 首先看自己是因为什么跳转方法报错:push/replace/back......

在router.js下写入下列两串代码(如果是其他跳转方法,把push换成相应方法,例如push换成replace)

image.png