关于 vue 的 this.$router.push、replace、go 的区别
关于 vue 的 this.$router.push、replace、go 的区别this.$router.push说明:跳转到指定URL,向history栈添加一个新的记录,点击后退会返回至上一个页面、代码演示:this.$router.push('/index')this.$router.push({path:'/index'})this.$router.push({path:'/index', query:{name:'123'}})this.$router.push({name:'
转载
2020-09-13 17:09:04 ·
212 阅读 ·
0 评论