this.$router.go(0)的作用

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

你可能感兴趣的:(javascript,vue.js,前端,vue,html)