if (this.$store.state.previousRouter.name) {
this.$router.push({name: this.$store.state.previousRouter.name});
}
PS:this.$store.state.previousRouter.name 为上一级路由。
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