From f14f98a263141d2f8ec0079866a758cc7a1c38d1 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期一, 22 八月 2022 03:20:29 +0800
Subject: [PATCH] 添加用户删除功能

---
 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