const fields = [
[
{
username: '姓名',
password: '密码',
},
false
],
[
{
personData: '个人信息',
age: '年龄',
},
{
work: '工作',
address: '地址',
},
null,
''
]
]
const a = fields.map(v => v.filter(Boolean))
console.log(a)