diff --git a/src/components/header.vue b/src/components/header.vue index 14f405b4..abe06fab 100644 --- a/src/components/header.vue +++ b/src/components/header.vue @@ -314,6 +314,12 @@ export default { return } }); + + // 如果数组为空表示该用户没有权限访问 + if (!arr2.length) { + return this.$message.warning('暂无权限'); + } + let routeUrl = this.$router.resolve({ path: arr2[0].modulePath, }); diff --git a/src/views/projectAdmin/zjsj/assets/images/command-center/map.png b/src/views/projectAdmin/zjsj/assets/images/command-center/map.png index 09fdc861..d97bda28 100644 Binary files a/src/views/projectAdmin/zjsj/assets/images/command-center/map.png and b/src/views/projectAdmin/zjsj/assets/images/command-center/map.png differ diff --git a/src/views/projectAdmin/zjsj/assets/images/command-center/marker.png b/src/views/projectAdmin/zjsj/assets/images/command-center/marker.png new file mode 100644 index 00000000..c030b8c9 Binary files /dev/null and b/src/views/projectAdmin/zjsj/assets/images/command-center/marker.png differ diff --git a/src/views/projectAdmin/zjsj/command/center.vue b/src/views/projectAdmin/zjsj/command/center.vue index 210f9e21..65268e19 100644 --- a/src/views/projectAdmin/zjsj/command/center.vue +++ b/src/views/projectAdmin/zjsj/command/center.vue @@ -1,11 +1,14 @@