当前位置: 代码迷 >> 综合 >> this.$router.go()和this.$router.push()
  详细解决方案

this.$router.go()和this.$router.push()

热度:75   发布时间:2023-11-03 12:56:37.0

1.this.$router.go(val) => 在history记录中前进或者后退val步,当val为0时刷新当前页面。

2.this.$router.push(path) => 在history栈中添加一条新的记录。

  相关解决方案