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, 9 insertions(+), 0 deletions(-)
diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue
index 5e5fc95..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,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