zhangzengfei
2022-09-19 34b5cb9940cb69d9588b092059bac4cc8baf9bfd
src/views/manageCenter/index.vue
@@ -758,21 +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) {
        const { href } = this.$router.resolve({
          path: route.path
        })
        window.open(href, "_blank")
      } else if (!userInfo.parentId) {
        this.$router.push(route.openPath)
      }
      window.open(href, "_blank")
    },
    refrash() {},
    handleSizeChange() {},