vue中刷新页面或跳转前一页面

go(-1): 原页面表单中的内容会丢失;
this.$router.go(-1):后退+刷新;

this.$router.go(0):刷新;

this.$router.go(1) :前进

back(): 原页表表单中的内容会保留;
this.$router.back():后退 ;

this.$router.back(0) 刷新;

this.$router.back(1):前进

版权声明:本文为qq_44774831原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。