From 3d3e7d5c8565aa701a38f2fd7cda85673100a1bd Mon Sep 17 00:00:00 2001 From: "@changcode" Date: Tue, 18 May 2021 10:27:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BD=BF=E7=94=A8=E5=AF=BC=E8=88=AA?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E5=9B=BE=E6=A0=87=E6=97=A0=E6=9D=83=E9=99=90?= =?UTF-8?q?=E6=97=B6=E5=85=B3=E9=97=ADbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/common/popBox/guide.vue | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/nezha-fronted/src/components/common/popBox/guide.vue b/nezha-fronted/src/components/common/popBox/guide.vue index bd334f240..8f2a5f879 100644 --- a/nezha-fronted/src/components/common/popBox/guide.vue +++ b/nezha-fronted/src/components/common/popBox/guide.vue @@ -157,22 +157,6 @@ export default { this.$store.commit('openConsole') }, jump (route) { - this.$emit('close') - // if(!this.hasButton('dc_add')){ - // return - // } else if(!this.hasButton('agent_add')){ - // return - // } else if(!this.hasButton('asset_add')){ - // return - // } else if(!this.hasButton('project_add')){ - // return - // } else if(!this.hasButton('panel_add')){ - // return - // } else if (!this.hasButton('alertRule_add')){ - // return - // }else{ - // console.log('有权限') - // } let buttonPermissions = true this.guideList.forEach(ele => { if (!this.hasButton(ele.buttonPermissions)){ @@ -182,6 +166,7 @@ export default { if (!buttonPermissions){ return } + this.$emit('close') this.$router.push({ path: route, query: { @@ -318,7 +303,7 @@ export default { } }, watch: { - showDialog (n) { + showDialog (n, o) { this.visible = n }, activeIndex (n) {