From c89113ec9b5032b5553334ec6c9ac3700ba6c398 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期四, 23 六月 2022 16:35:29 +0800
Subject: [PATCH] 1.设备管理、设备类型(查询、新增、删除)功能开发 2.设备管理、设备组(查询、新增、删除)功能开发

---
 src/layout/components/Navbar.vue |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue
index 56bf3c0..1ec4978 100644
--- a/src/layout/components/Navbar.vue
+++ b/src/layout/components/Navbar.vue
@@ -76,10 +76,12 @@
       const usercode = getCookie('navTabId')
       const username = getCookie('admin')
       const usertype = getCookie('usertype')
+      const userid = getCookie('userid')
       const data = {
         usercode,
         username,
-        usertype
+        usertype,
+        userid
       }
       const res = await logout(data)
       if (res.code === '200') {
@@ -88,6 +90,7 @@
         removeCookie('admin')
         removeCookie('navTabId')
         removeCookie('usertype')
+        removeCookie('userid')
         this.$message.success('閫�鍑烘垚鍔燂紒')
         this.$router.push(`/login?redirect=${this.$route.fullPath}`)
         // this.$router.push(`/login?redirect=${this.$route.fullPath}`)

--
Gitblit v1.9.3