From 7c9208e7ebad8d4a83382d2b471eacea476228b4 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期二, 22 八月 2023 13:32:07 +0800
Subject: [PATCH] 1.班组管理
---
src/layout/components/Sidebar/index.vue | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue
index 2e7e9ee..f62720f 100644
--- a/src/layout/components/Sidebar/index.vue
+++ b/src/layout/components/Sidebar/index.vue
@@ -57,6 +57,7 @@
import SidebarItem from './SidebarItem'
import variables from '@/styles/variables.scss'
import { removeCookie, setCookie } from '@/utils/auth'
+import Vue from 'vue'
export default {
components: { SidebarItem, Logo },
@@ -76,10 +77,14 @@
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閲岄潰
+ Vue.prototype.$buttoncode = meta.buttoncode
+ Vue.prototype.$datacode = meta.datacode
+ // setCookie('buttoncode', meta.buttoncode)// 鎸夐挳鏉冮檺
+ // setCookie('datacode', meta.datacode)// 鏁版嵁鏉冮檺
if (meta.activeMenu) {
return meta.activeMenu
}
--
Gitblit v1.9.3