diff --git a/src/components/header.vue b/src/components/header.vue index 8bdcfcf..8736ec8 100644 --- a/src/components/header.vue +++ b/src/components/header.vue @@ -109,7 +109,9 @@ const to = (url) => { }); if (url == "/home/index/map") { let menu = tools.data.get("menu"); - if(menu && menu.indexOf('ggfw:ystp') != -1){ + if(!menu || menu.indexOf('ggfw:ystp') == -1){ + + }else{ data.nowTab = url; data.menushow = false; }