SOURCE

const file = {
    name: '111.jpg',
    type: 'application/json',
    fssReadKey: '1bc890',
    currFile: 'baidu'
}
const data = {
    date: '20220406',
    time: '15:04:22'
}
const fileType = {
  leftFileMap: 'admin_left',
  rightFileMap: 'admin_right',
  topFileMap: 'app_top',
  bottomFileMap: 'app_bottom',
  centerFileMap: 'qq_center',

}
const docFileList = []

Object.keys(fileType).map((n) => {
    docFileList.push({
        [n]: { docFormat: file.type, docName: file.name, fssReadKey: file.fssReadKey, docFileType: file.currFile },
        name: data.date,
        age: data.time
    })
})
console.log(docFileList)
console 命令行工具 X clear

                    
>
console