2020
10-08
10-08
vue element 关闭当前tab 跳转到上一路由操作
方法一this.$store.dispatch('delVisitedViews',this.$route);this.$router.go(-1);方法二this.$store.state.tagsView.visitedViews.splice(this.$store.state.tagsView.visitedViews.findIndex(item=>item.path===this.$route.path),1)this.$router.push(this.$store.state.tagsView.visitedViews[this.$store.state.tagsView.visitedViews.length-1].path)补充知识:vue+element解决点击table列表的从详情或修改页面跳转路...
继续阅读 >