perf: VueX缩减、优化(部分)

This commit is contained in:
chenjinsong
2020-08-03 21:33:13 +08:00
parent f4e13f932d
commit dd7a4ffdff
7 changed files with 210 additions and 283 deletions

View File

@@ -349,7 +349,7 @@
this.rightBox.dc.show = false;
if (refresh) {
this.getTableData();
this.$store.commit("dcListChange");
bus.$emit("dc-list-change");
}
},
closeTrafficBox(refresh) {
@@ -459,6 +459,12 @@
this.$set(this.searchLabel, "orderBy", orderBy);
this.getTableData();
},
initEvent() {
bus.$on("dc-list-change", () => {
this.getTableData();
});
}
},
watch: {
'bottomBox.dc': {