- replace()
this.$router.replace('router地址')
replace()进行页面跳转不会形成history,不可返回到上一层
- push()
this.$router.push('router地址')
push()进行页面跳转回形成history,可返回到上一层
转载自:洋葱先生-杨少通: http://www.dreamload.cn/blog/?p=960
this.$router.replace('router地址')
replace()进行页面跳转不会形成history,不可返回到上一层
this.$router.push('router地址')
push()进行页面跳转回形成history,可返回到上一层
转载自:洋葱先生-杨少通: http://www.dreamload.cn/blog/?p=960