用新值覆盖之前的数据就OK了,这样页面刷新url上面的值一直保持最新的
this.$router.push({
params: {...this.$route.params, name:this.name}
})
this.$router.push({
query: {...this.$route.query, name:this.name}
})
用新值覆盖之前的数据就OK了,这样页面刷新url上面的值一直保持最新的
this.$router.push({
params: {...this.$route.params, name:this.name}
})
this.$router.push({
query: {...this.$route.query, name:this.name}
})