router.push('your-path').catch(err => {})
const path = `/products/${id}`
if (this.$route.path !== path) this.$router.push(path)
router.push('your-path').catch(err => {})
const path = `/products/${id}`
if (this.$route.path !== path) this.$router.push(path)
本文标题:router.push 当 path 相同时,log 打印错误捕
本文链接:https://www.haomeiwen.com/subject/ostcmhtx.html
网友评论