if (this.$store.state.previousRouter.name) {
          this.$router.push({name: this.$store.state.previousRouter.name});
}

  PS:this.$store.state.previousRouter.name  为上一级路由。

转载于:https://www.cnblogs.com/alvin553819/p/7344584.html

Logo

前往低代码交流专区

更多推荐