From 95fb18f99827a5eeefa1ebf661c6f6459646b87b Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期三, 20 七月 2022 19:27:37 +0800
Subject: [PATCH] 1.修改bug 2.正在开发缺陷定义
---
src/layout/components/Sidebar/index.vue | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue
index 32f68d3..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
}
@@ -82,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