fix: 修复顶部按钮create project有时失效的问题
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user