常用的导航api有:
this.$router.push('hash地址')
- 跳转到指定hash地址,并增加一条历史记录
this.$router.replace('hash地址')
- 跳转到指定hash地址,并替换到当前的历史记录
this.$router.go(数值n)
- 历史记录的前进和后退,数值n为负数则后退,为正数则前进,前进/后退值为n的值
常用的导航api有:
this.$router.push('hash地址')
this.$router.replace('hash地址')
this.$router.go(数值n)