vue点击刷新。然后刷新当前页面

之前一直都是简单粗暴的方法:

 window.location.reload();

今天发现了个比较委婉的

this.$router.go(0)

感谢大佬分享https://segmentfault.com/q/1010000008035064

嗯。我只有写项目就会遇到问题,然后就去百度,然后就能学到东西啦~~开森

猜你喜欢

转载自blog.csdn.net/qq_32963841/article/details/81740665
今日推荐