新增tab对象简化页签操作

This commit is contained in:
RuoYi
2021-11-19 17:58:55 +08:00
parent 334f79efe4
commit adcb6194c8
12 changed files with 108 additions and 35 deletions

View File

@@ -211,8 +211,8 @@ export default {
},
/** 关闭按钮 */
close() {
this.$store.dispatch("tagsView/delView", this.$route);
this.$router.push({ path: "/tool/gen", query: { t: Date.now(), pageNum: this.$route.query.pageNum } })
const obj = { path: "/tool/gen", query: { t: Date.now(), pageNum: this.$route.query.pageNum } };
this.$tab.closeOpenPage(obj);
}
},
mounted() {