From a0b5604fcefa0c7900ecc50830b718f77bba8f39 Mon Sep 17 00:00:00 2001
From: heyujie <516346543@qq.com>
Date: 星期五, 15 七月 2022 14:43:40 +0800
Subject: [PATCH] add cluster pwd

---
 src/views/equipmentManagement/index.vue |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/views/equipmentManagement/index.vue b/src/views/equipmentManagement/index.vue
index dd75b8c..5484ec2 100644
--- a/src/views/equipmentManagement/index.vue
+++ b/src/views/equipmentManagement/index.vue
@@ -25,6 +25,9 @@
   methods: {
     checkpermission() {
       const userInfo = JSON.parse(sessionStorage.getItem("userInfo"));
+      if (!userInfo) {
+        this.$router.push("/login");
+      }
       const val = userInfo.permissions.find((item) => {
         return item == "deviceMng";
       });

--
Gitblit v1.8.0