export function getListDefault(data, key) {
let list1 = data[key];
console.log(list1, 'list1');
let list = Object.keys(list1)
.filter((item) => item !== 'defaultValue')
.map((item) => list1[item]);
console.log(list, 'list');
let defaultValue = list1['defaultValue'];
return { defaultValue, list, dict: list1 };
}
React开发(276):dva 处理成数组的方法
2021/12/3 2:48:40