loulijun2021
2022-07-21 bd54d5d5f292fe398599199b8ca2658b2549777d
src/layout/components/Sidebar/index.vue
@@ -26,7 +26,8 @@
    </el-scrollbar>
    <div style="position: absolute;bottom: 20px;left: 30px;">
      <div>
        <el-button type="text">新凯迪制造V1.0.01</el-button>
        <el-button type="text" style="font-size: 14px;cursor: pointer">新凯迪制造V1.0.01</el-button>
        <!--        <el-button type="text"><a href="http://www.ykxkd.com/" target="_blank">新凯迪制造V1.0.01</a></el-button>-->
      </div>
    </div>
@@ -39,7 +40,7 @@
import SidebarItem from './SidebarItem'
import variables from '@/styles/variables.scss'
import { LoginMenu } from '@/api/user'
import { setCookie } from '@/utils/auth'
import { removeCookie, setCookie } from '@/utils/auth'
export default {
  components: { SidebarItem, Logo },
@@ -60,6 +61,7 @@
      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)// 将编码规则code存到cookie里面
      if (meta.activeMenu) {
        return meta.activeMenu
@@ -84,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;
}