fix: 修复顶部按钮create project有时失效的问题

This commit is contained in:
chenjinsong
2019-12-16 10:35:31 +08:00
parent 1af9501f73
commit 9ef4f00a74
3 changed files with 4 additions and 2 deletions

View File

@@ -176,6 +176,7 @@ export default {
}
this.$store.commit('toCreateEndpoint', true);
} else if (item.type == 5) {
this.$store.commit('projectRightBoxShow', false);
this.$store.commit('toCreateAlertConfig', true);
}
}, 120);

View File

@@ -452,7 +452,7 @@ export default {
toAdd: function() {
this.cleanAlertRule();
this.rightBox.isEdit = true;
this.rightBox.title = this.$t("alert.config.createalertConfig");
this.rightBox.title = this.$t("alert.config.createAlertConfig");
this.rightBox.show = true;
},
detail: function(u) {
@@ -587,6 +587,7 @@ export default {
},
watch: {
sProject(n, o) {
this.$store.commit('toCreateAlertConfig', false);
this.toAdd();
}
}

View File

@@ -1246,7 +1246,7 @@ export default {
this.assetSearch.dropdownShow = false;
}
},
mounted: function() {
created: function() {
window.addEventListener('click', () => {
this.esc(1);
this.$store.commit('projectRightBoxShow', false);