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):前进

vue中this.$router.back()与this.$router.go(-1)返回上一页的区别vue中this.$router.back()与this.$router.go(-1)返回上一页的区别

 

 

原文转载:https://www.cnblogs.com/vickylinj/p/14189951.html

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-07
  • 2022-02-12
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-22
  • 2021-06-13
相关资源
相似解决方案