v3.8.0 新增tab对象简化页签操作

This commit is contained in:
YunaiV
2022-02-17 15:21:46 +08:00
parent 5036971f55
commit 8e0415a8fe
12 changed files with 83 additions and 17 deletions

View File

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