About Vue in, $ this.router.push to the current page, just passing different parameters, refresh the page does not solve the problem

 

 

In the watch page, monitor changes in the $ router

watch: {
    $route (to, from) {
      this.$router.go(0)
    }
  }

Among this $ router.go (0) to refresh the page, but this method may not be realized in Safari, you can use js native method: window.location.reload ()

Guess you like

Origin www.cnblogs.com/jane2160/p/11573315.html