From 085073d0be70719443725e003101eb94c1e5e921 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Thu, 14 Jan 2021 11:49:54 +0800 Subject: [PATCH 01/18] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9=E4=B8=8D?= =?UTF-8?q?=E7=82=B9=E5=87=BBproject=20=E7=9B=B4=E6=8E=A5=E7=82=B9?= =?UTF-8?q?=E5=87=BBmodule=E5=88=97=E8=A1=A8=20=E8=A1=A8=E6=A0=BC=E4=B8=8D?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=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 | 3 +++ nezha-fronted/src/components/common/leftMenu.vue | 4 +++- nezha-fronted/src/components/page/project/project.vue | 8 -------- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/nezha-fronted/src/components/common/header.vue b/nezha-fronted/src/components/common/header.vue index db1a20340..652f48873 100644 --- a/nezha-fronted/src/components/common/header.vue +++ b/nezha-fronted/src/components/common/header.vue @@ -365,6 +365,9 @@ return; } this.currentProject = p; + if(p.id!==this.$store.state.currentProject.id){ + bus.$emit("project-page-type", "project"); + } this.$store.commit("currentProjectChange", p); this.activeItemIndex = p.id; this.jumpTo('/project'); diff --git a/nezha-fronted/src/components/common/leftMenu.vue b/nezha-fronted/src/components/common/leftMenu.vue index 68f18efb2..1959e0556 100644 --- a/nezha-fronted/src/components/common/leftMenu.vue +++ b/nezha-fronted/src/components/common/leftMenu.vue @@ -4,7 +4,7 @@