vue2
路由跳转并关闭标签栏目
// 关闭当前tabs
this.$store.dispatch("tagsView/delView", this.$route);
// 跳转路由
this.$router.replace({ path: '/education/manage' });
vue3
import useTagsViewStore from "@/store/modules/tagsView.js"
const useTagsStore = useTagsViewStore();
const router = useRouter();
const currentTag = router.currentRoute.value;
const goBack = () => {
router.go(-1);//或者跳转其他路由
useTagsStore.delVisitedView(currentTag);
};