两种方案:

1、 this.$router.go(-1)

2、this.$router.push('/xxx') 最常用 或者this.$router.push({name:'xxx'})对象的方法

分析两种方案,方案一,返回的是上一级,从哪来回哪去;方案二则是可以指定路由,个人经验,谨慎用方案一

Logo

前往低代码交流专区

更多推荐