vue-router路由跳转 replace
1.push 常用this.$router.push()2.replace 不会在浏览器得历史记录中加,只会替代掉最后一条记录(这个比较好用)this.$router.replace()3.gothis.$router.go()this.$router.back(-1)
·
1.push 常用
this.$router.push()
2.replace 不会在浏览器得历史记录中加,只会替代掉最后一条记录(这个比较好用)
this.$router.replace()
3.go
this.$router.go()
this.$router.back(-1)
更多推荐
已为社区贡献23条内容
所有评论(0)