roleList =[...new Set(//处理数组对象,获取id组成数组,去重
roleList
.map(obj => obj.roleVOList)
.flat()//数组扁平化
.map(obj=> obj.id
))]
roleList =[...new Set(//处理数组对象,获取id组成数组,去重
roleList
.map(obj => obj.roleVOList)
.flat()//数组扁平化
.map(obj=> obj.id
))]