| | |
| | | :collapse-transition="false" |
| | | mode="vertical" |
| | | > |
| | | <sidebar-item v-for="route in routes" :key="route.path" :item="route" :base-path="route.path" /> |
| | | <sidebar-item v-for="route in routerList" :key="route.path" :item="route" :base-path="route.path" /> |
| | | </el-menu> |
| | | </el-scrollbar> |
| | | </div> |
| | |
| | | import Logo from './Logo' |
| | | import SidebarItem from './SidebarItem' |
| | | import variables from '@/styles/variables.scss' |
| | | import { deptAdminRoutes } from '@/router' |
| | | |
| | | export default { |
| | | components: { SidebarItem, Logo }, |
| | |
| | | }, |
| | | isCollapse () { |
| | | return !this.sidebar.opened |
| | | }, |
| | | routerList () { |
| | | return sessionStorage.getItem('deptAdmin') === '1' ? deptAdminRoutes : this.routes |
| | | } |
| | | }, |
| | | data () { |
| | | return { |
| | | } |
| | | } |
| | | } |