json 前台处理
export function fetchList(query) {
return new Promise((resolve, reject) => {
request({
url: '/XXX/page',
method: 'get',
params: query
}).then(res => {
let list = res.data.records;
let lstOject = []
for(let item of list){
let reObject = Object.assign({},item,JSON.parse(item.auditInfo))
lstOject.push(reObject)
}
res.data.data.records = lstOject;
resolve(res);
//console.log(res.data.data.records)
})
})
}
择善人而交,择善书而读,择善言而听,择善行而从。