把对应的config.data替换为需要过滤的对象即可
Object.keys(config.data).forEach((item) => {
const key = config.data[item];
if (key === "" || key === null || key === undefined) {
delete config.data[item];
}
});
把对应的config.data替换为需要过滤的对象即可
Object.keys(config.data).forEach((item) => {
const key = config.data[item];
if (key === "" || key === null || key === undefined) {
delete config.data[item];
}
});