| | |
| | | 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 }, |
| | |
| | | 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 |