| | |
| | | // }, |
| | | //设置当前激活的角色 |
| | | setActiveRole(state, role) { |
| | | console.log("role===>", role); |
| | | state.activeRole = role |
| | | uni.setStorageSync('activeRole', role) |
| | | }, |
| | |
| | | |
| | | }, |
| | | actions: { |
| | | |
| | | |
| | | getMenuList({ |
| | | commit |
| | | }) { |
| | |
| | | } |
| | | if (uni.getStorageSync("siteInfo").addressType == 1 || roleName == "居民") { |
| | | param.labelType = uni.getStorageSync("siteInfo").addressType; |
| | | param.roleName = roleName; |
| | | param.houseCode = uni.getStorageSync("siteInfo").houseCode; |
| | | } |
| | | console.log("===>", param); |
| | | param.roleName = roleName; |
| | | dynamicMenu(param).then(res => { |
| | | if (res.code == 200) { |
| | | let data = res.data; |