From e846eefa54a7a2274a34d43d4601e192a1ada3d9 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期六, 25 六月 2022 13:16:07 +0800
Subject: [PATCH] 1.项目整体样式的配置2.实现工艺设置动态添加的静态样式

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

diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue
index 56bf3c0..4b04a7c 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,8 +90,9 @@
         removeCookie('admin')
         removeCookie('navTabId')
         removeCookie('usertype')
+        removeCookie('userid')
         this.$message.success('閫�鍑烘垚鍔燂紒')
-        this.$router.push(`/login?redirect=${this.$route.fullPath}`)
+        this.$router.push('/login')
         // this.$router.push(`/login?redirect=${this.$route.fullPath}`)
       }
       // this.$router.push(`/login`)

--
Gitblit v1.9.3