From 34b5cb9940cb69d9588b092059bac4cc8baf9bfd Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期一, 19 九月 2022 11:01:44 +0800
Subject: [PATCH] 修复管理员权限的页面打开方式,添加title设置

---
 src/views/manageCenter/index.vue |   19 +++----------------
 1 files changed, 3 insertions(+), 16 deletions(-)

diff --git a/src/views/manageCenter/index.vue b/src/views/manageCenter/index.vue
index 1a113e1..c514585 100644
--- a/src/views/manageCenter/index.vue
+++ b/src/views/manageCenter/index.vue
@@ -758,23 +758,10 @@
       this.pieChart.setOption(this.pieOption)
     },
     jump(route) {
-      const userInfo = JSON.parse(sessionStorage.getItem("userInfo"))
-
-      const val = userInfo.permissions.find((item) => {
-        return item == route.permission
+      const { href } = this.$router.resolve({
+        path: route.path
       })
-      if (val) {
-        if (route.path === "/search" || route.path === "/dataView") {
-          const { href } = this.$router.resolve({
-            path: route.path
-          })
-          window.open(href, "_blank")
-          return
-        }
-        this.$router.push(route.path)
-      } else if (!userInfo.parentId) {
-        this.$router.push(route.openPath)
-      }
+      window.open(href, "_blank")
     },
     refrash() {},
     handleSizeChange() {},

--
Gitblit v1.8.0