SOURCE

const res = ['1', '2']
let param = []
const parser=res.map(t => {
    return {
        type: 'text',
        content: {
            text: t,
        },
    }
})
console.log(parser, '@PARM')
console 命令行工具 X clear

                    
>
console