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....
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
更多推荐
所有评论(0)