From 9ef4f00a74dee2f749399511aaa47ba18be2e4b8 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Mon, 16 Dec 2019 10:35:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=A1=B6=E9=83=A8?= =?UTF-8?q?=E6=8C=89=E9=92=AEcreate=20project=E6=9C=89=E6=97=B6=E5=A4=B1?= =?UTF-8?q?=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/common/header.vue | 1 + nezha-fronted/src/components/page/alert/config.vue | 3 ++- nezha-fronted/src/components/page/project/project.vue | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/nezha-fronted/src/components/common/header.vue b/nezha-fronted/src/components/common/header.vue index 5a568345f..bb66572bb 100644 --- a/nezha-fronted/src/components/common/header.vue +++ b/nezha-fronted/src/components/common/header.vue @@ -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); diff --git a/nezha-fronted/src/components/page/alert/config.vue b/nezha-fronted/src/components/page/alert/config.vue index 21f500ca6..510797014 100644 --- a/nezha-fronted/src/components/page/alert/config.vue +++ b/nezha-fronted/src/components/page/alert/config.vue @@ -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(); } } diff --git a/nezha-fronted/src/components/page/project/project.vue b/nezha-fronted/src/components/page/project/project.vue index 14f01417a..3dd31c55b 100644 --- a/nezha-fronted/src/components/page/project/project.vue +++ b/nezha-fronted/src/components/page/project/project.vue @@ -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);