fix: 修复顶部按钮create project有时失效的问题
This commit is contained in:
@@ -176,6 +176,7 @@ export default {
|
|||||||
}
|
}
|
||||||
this.$store.commit('toCreateEndpoint', true);
|
this.$store.commit('toCreateEndpoint', true);
|
||||||
} else if (item.type == 5) {
|
} else if (item.type == 5) {
|
||||||
|
this.$store.commit('projectRightBoxShow', false);
|
||||||
this.$store.commit('toCreateAlertConfig', true);
|
this.$store.commit('toCreateAlertConfig', true);
|
||||||
}
|
}
|
||||||
}, 120);
|
}, 120);
|
||||||
|
|||||||
@@ -452,7 +452,7 @@ export default {
|
|||||||
toAdd: function() {
|
toAdd: function() {
|
||||||
this.cleanAlertRule();
|
this.cleanAlertRule();
|
||||||
this.rightBox.isEdit = true;
|
this.rightBox.isEdit = true;
|
||||||
this.rightBox.title = this.$t("alert.config.createalertConfig");
|
this.rightBox.title = this.$t("alert.config.createAlertConfig");
|
||||||
this.rightBox.show = true;
|
this.rightBox.show = true;
|
||||||
},
|
},
|
||||||
detail: function(u) {
|
detail: function(u) {
|
||||||
@@ -587,6 +587,7 @@ export default {
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
sProject(n, o) {
|
sProject(n, o) {
|
||||||
|
this.$store.commit('toCreateAlertConfig', false);
|
||||||
this.toAdd();
|
this.toAdd();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1246,7 +1246,7 @@ export default {
|
|||||||
this.assetSearch.dropdownShow = false;
|
this.assetSearch.dropdownShow = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted: function() {
|
created: function() {
|
||||||
window.addEventListener('click', () => {
|
window.addEventListener('click', () => {
|
||||||
this.esc(1);
|
this.esc(1);
|
||||||
this.$store.commit('projectRightBoxShow', false);
|
this.$store.commit('projectRightBoxShow', false);
|
||||||
|
|||||||
Reference in New Issue
Block a user