From cb9ea999ab8f8b74ca90685f9fc7f95d68f22457 Mon Sep 17 00:00:00 2001 From: yaoyuhao Date: Tue, 12 Nov 2024 14:31:20 +0800 Subject: [PATCH] 1 --- src/router/index.js | 2 ++ src/view/sy_map.vue | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/router/index.js b/src/router/index.js index 9b8913c..6a07ba0 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -162,10 +162,12 @@ router.beforeEach((to, form, next) => { // next(); // } // console.log(55555, to.fullPath); + //没有token直接放行 if (!token) { next(); } else { if (to.fullPath == '/home/index/map') { + //当未重新登录时,menu为空或没有权限标识,无法访问, if (!menu || menu.indexOf('ggfw:ystp') == -1) { ElMessage.error("您无权限访问该模块,若有需求请联系大数据中心!"); } else { diff --git a/src/view/sy_map.vue b/src/view/sy_map.vue index d887291..340c7a3 100644 --- a/src/view/sy_map.vue +++ b/src/view/sy_map.vue @@ -3455,6 +3455,10 @@ const createZyys = (polygon, indexx, name, tooltip,img_width) => { break; case "残疾人之家": break; + case "便民服务中心": + break; + case "残疾人之家": + break; case "小区物业": console.log(polygon); open_detail_zyys_xqwy(polygon.ssjd, polygon.sssq);