useEffect(() => {
if (solution !== undefined) {
solution.forEach(it => {
it['name'] = it['solution_name'];
});
console.log(solution,"solution is")
setMachineChangeList(solution);
setSolutionName(solution[0].id||"")
}
}, [solution]);
前端项目实战肆佰叁拾叁react-admin和material ui-useEffect影响数据得变化
最新推荐文章于 2024-08-21 14:09:37 发布