| | |
| | | // 登录用户信息 |
| | | userInfo: null, |
| | | tableHeightNew: 300, |
| | | sysConfig: { title: '', subtitle: '' }, |
| | | primaryColor: '#2080f7', |
| | | // 首页 |
| | | homePage: null, |
| | |
| | | console.log('设置顶部菜单索引', index) |
| | | state.currentIndex = index |
| | | }, |
| | | setSysconfig (state, config) { |
| | | state.sysConfig = { title: config.title || '', subtitle: config.subtitle || '' } |
| | | document.title = state.sysConfig.title+ state.sysConfig.subtitle |
| | | }, |
| | | // 切换菜单状态 |
| | | switchCollapseMenu (state, value) { |
| | | if (value != null) { |
| | |
| | | }, |
| | | // 设置首页路由信息 |
| | | setTopMenuCurrent (state, current) { |
| | | console.log("setTopMenuCurrent",current) |
| | | console.log('setTopMenuCurrent', current) |
| | | if(current.id !== state.topMenuCurrent.id){ |
| | | state.topMenuList.list.forEach(item => { |
| | | console.log(item.id, item.id) |