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 为上一级路由。