From f35da7050efeaff1fd442c233008fdc00b10851f Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期一, 18 七月 2022 18:04:33 +0800
Subject: [PATCH] 1.优化项目修改bug2.实现缺陷前端页面

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

diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue
index dc2fddb..7f829fe 100644
--- a/src/layout/components/Sidebar/index.vue
+++ b/src/layout/components/Sidebar/index.vue
@@ -27,6 +27,7 @@
     <div style="position: absolute;bottom: 20px;left: 30px;">
       <div>
         <el-button type="text">鏂板嚡杩埗閫燰1.0.01</el-button>
+        <!--        <el-button type="text"><a href="http://www.ykxkd.com/" target="_blank">鏂板嚡杩埗閫燰1.0.01</a></el-button>-->
       </div>
     </div>
 
@@ -39,7 +40,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 +61,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
@@ -84,9 +86,12 @@
   color: white;
   font-size: 18px;
 }
-.el-button--text:focus{
+
+.el-button--text:focus {
   color: white;
+
 }
+
 #app .sidebar-container .el-submenu .el-menu-item {
   background-color: transparent !important;
 }

--
Gitblit v1.9.3