1、this.$router.go(0);
2、location.reload(false);
3、location.reload();
关于上述几种方式的区别:
this.$router.go(0)时,相当于重新跳回当前页面
location.reload(true)时,相当于强制刷新
location.reload(false)时,刷新,但可以引用缓存的数据。
this.$router.go(0)时,相当于重新跳回当前页面
location.reload(true)时,相当于强制刷新
location.reload(false)时,刷新,但可以引用缓存的数据。