router.push子路由出现Navigating to current location ("/item") is not allowed"

环境:父路由的path: /item/item01/,子路由的path:evaluate。

           在模板中使用了 ,并且触发了

this.$router.push("/item/item01/evaluate");

并且如果push的是相对path:evaluate无效。

并且子路由的内容可以正常显示。

问题:Navigating to current location ("/item") is not allowed"

解决办法:

https://stackoverflow.com/questions/57837758/navigationduplicated-navigating-to-current-location-search-is-not-allowed

router.push子路由出现Navigating to current location ( 

你可能感兴趣的:(vue,前端)