From 3fce634eeb56f9425d5e745b1d4333da962fc3d7 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期五, 25 八月 2023 11:19:10 +0800
Subject: [PATCH] 1.新增功能菜单
---
src/layout/components/Sidebar/index.vue | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue
index acd2ac3..890bc5f 100644
--- a/src/layout/components/Sidebar/index.vue
+++ b/src/layout/components/Sidebar/index.vue
@@ -42,7 +42,7 @@
<div v-if="!$store.state.settings.menuIsHorizontal" style="position: absolute;bottom: 20px;left: 30px;">
<div>
<el-button v-if="$store.state.app.sidebar.opened" type="text" style="font-size: 14px;cursor: pointer">
- 鏂板嚡杩埗閫燰1.6.53
+ 鏂板嚡杩埗閫燰2.0.0
</el-button>
<!-- <el-button type="text"><a href="http://www.ykxkd.com/" target="_blank">鏂板嚡杩埗閫燰1.0.01</a></el-button>-->
</div>
@@ -56,8 +56,8 @@
import Logo from './Logo'
import SidebarItem from './SidebarItem'
import variables from '@/styles/variables.scss'
-import { LoginMenu } from '@/api/user'
import { removeCookie, setCookie } from '@/utils/auth'
+import Vue from 'vue'
export default {
components: { SidebarItem, Logo },
@@ -77,9 +77,16 @@
activeMenu() {
const route = this.$route
const { meta, path } = route
+ console.log(meta, path, 7)
// if set path, the sidebar will highlight the path you set
removeCookie('ruleCode')
- setCookie('ruleCode', meta.code)// 灏嗙紪鐮佽鍒檆ode瀛樺埌cookie閲岄潰
+ setCookie('ruleCode', meta.code) // 灏嗙紪鐮佽鍒檆ode瀛樺埌cookie閲岄潰
+
+ removeCookie('datacode')
+ setCookie('datacode', meta.datacode) // 鏁版嵁鏉冮檺
+
+ Vue.prototype.$buttoncode = meta.buttoncode // 鎸夐挳鏉冮檺
+
if (meta.activeMenu) {
return meta.activeMenu
}
--
Gitblit v1.9.3