loulijun2021
2022-06-30 7d0a954d23d21c0cdaff6ed20ad7291b3dbf889a
src/layout/components/Sidebar/index.vue
@@ -39,6 +39,7 @@
import SidebarItem from './SidebarItem'
import variables from '@/styles/variables.scss'
import { LoginMenu } from '@/api/user'
import { setCookie } from '@/utils/auth'
export default {
  components: { SidebarItem, Logo },
@@ -59,6 +60,7 @@
      const route = this.$route
      const { meta, path } = route
      // if set path, the sidebar will highlight the path you set
      setCookie('ruleCode', meta.code)// 将编码规则code存到cookie里面
      if (meta.activeMenu) {
        return meta.activeMenu
      }
@@ -82,7 +84,9 @@
  color: white;
  font-size: 18px;
}
.el-button--text:focus{
  color: white;
}
#app .sidebar-container .el-submenu .el-menu-item {
  background-color: transparent !important;
}