From 4bcf7f5cbc8185b10e773feda6bee90fe3f32137 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期五, 22 七月 2022 15:50:21 +0800
Subject: [PATCH] 1.文件上传校验导入实现一个demo2.修改bug

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

diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue
index 5e5fc95..c6baec2 100644
--- a/src/layout/components/Sidebar/index.vue
+++ b/src/layout/components/Sidebar/index.vue
@@ -26,7 +26,8 @@
     </el-scrollbar>
     <div style="position: absolute;bottom: 20px;left: 30px;">
       <div>
-        <el-button type="text">鏂板嚡杩埗閫燰1.0.01</el-button>
+        <el-button type="text" style="font-size: 14px;cursor: pointer">鏂板嚡杩埗閫燰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,6 +40,7 @@
 import SidebarItem from './SidebarItem'
 import variables from '@/styles/variables.scss'
 import { LoginMenu } from '@/api/user'
+import { removeCookie, setCookie } from '@/utils/auth'
 
 export default {
   components: { SidebarItem, Logo },
@@ -59,6 +61,8 @@
       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
       }
@@ -83,6 +87,11 @@
   font-size: 18px;
 }
 
+.el-button--text:focus {
+  color: white;
+
+}
+
 #app .sidebar-container .el-submenu .el-menu-item {
   background-color: transparent !important;
 }

--
Gitblit v1.9.3