vue关闭当前页面并返回上一路由
删除vuex里存放的store里的tabs中的相应页面this.$store.state.user.tabs.splice(this.$store.state.user.tabs.findIndex(item => item.path === this.$route.path), 1)返回上一页this.$router.go(-1);
·
删除vuex里存放的store里的tabs中的相应页面this.$store.state.user.tabs.splice(this.$store.state.user.tabs.findIndex(item => item.path === this.$route.path), 1)
返回上一页
this.$router.go(-1);
更多推荐
已为社区贡献1条内容
所有评论(0)