From d24862719714be5f76fb3dc81a3a3da8de4cc5a4 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期六, 02 七月 2022 16:23:03 +0800
Subject: [PATCH] 关于打印功能的测试内容

---
 src/layout/components/Sidebar/index.vue |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue
index dc2fddb..f7f507e 100644
--- a/src/layout/components/Sidebar/index.vue
+++ b/src/layout/components/Sidebar/index.vue
@@ -39,7 +39,7 @@
 import SidebarItem from './SidebarItem'
 import variables from '@/styles/variables.scss'
 import { LoginMenu } from '@/api/user'
-import { setCookie } from '@/utils/auth'
+import { removeCookie, setCookie } from '@/utils/auth'
 
 export default {
   components: { SidebarItem, Logo },
@@ -60,6 +60,7 @@
       const route = this.$route
       const { meta, path } = route
       // if set path, the sidebar will highlight the path you set
+      removeCookie('ruleCode')
       setCookie('ruleCode', meta.code)// 灏嗙紪鐮佽鍒檆ode瀛樺埌cookie閲岄潰
       if (meta.activeMenu) {
         return meta.activeMenu

--
Gitblit v1.9.3