新增tab对象简化页签操作

This commit is contained in:
RuoYi
2021-11-19 14:53:40 +08:00
parent e41dd8a0f1
commit d1eacc1d1c
11 changed files with 102 additions and 26 deletions

View File

@ -109,8 +109,8 @@ export default {
},
/** 关闭按钮 */
close() {
this.$store.dispatch("tagsView/delView", this.$route);
this.$router.push({ path: "/system/user" });
const obj = { path: "/system/user" };
this.$tab.closeOpenPage(obj);
},
},
};

View File

@ -64,8 +64,7 @@ export default {
});
},
close() {
this.$store.dispatch("tagsView/delView", this.$route);
this.$router.push({ path: "/index" });
this.$tab.closePage();
}
}
};

View File

@ -68,8 +68,7 @@ export default {
});
},
close() {
this.$store.dispatch("tagsView/delView", this.$route);
this.$router.push({ path: "/index" });
this.$tab.closePage();
}
}
};