vue Uncaught Error: Redirected when going from “/*“ to “/*“ 路由报错
Uncaught Error: Redirected when going from "/*" to "/*"报类似的错 大部分因为触发了vue-router 路由导航重定向了简单的方法就是直接触发跳转的逻辑上,把error抛出来this.$router.replace({path: this.$route.path,query}).catch(()=>{});//把error 抛出来扩展参
·
Uncaught Error: Redirected when going from "/*" to "/*"
报类似的错 大部分因为触发了vue-router 路由导航重定向了
方法1.简单的方法就是直接触发跳转的逻辑上,把error抛出来
this.$router.replace({
path: this.$route.path,
query
})
.catch(()=>{});//把error 抛出来
方法2.
这个说的比较详细一点
https://blog.csdn.net/sinat_37255207/article/details/116610980
更多推荐
已为社区贡献10条内容
所有评论(0)