diff --git a/web/client/src/sections/control/containers/control.jsx b/web/client/src/sections/control/containers/control.jsx index 952ed0a..801caad 100644 --- a/web/client/src/sections/control/containers/control.jsx +++ b/web/client/src/sections/control/containers/control.jsx @@ -66,8 +66,9 @@ const Control = (props) => { dispatch(control.getConsoleCount({ pepProjectId: pepProjectId })).then(res => { if (res.success) setWorkData(res.payload.data) }) - dispatch(getConsoleAbnormal({ pepProjectId: pepProjectId })).then(res => { - if (res.success) setProblemsList(...res.payload.data,...res.payload.data) + dispatch(control.getConsoleAbnormal({ pepProjectId: pepProjectId })).then(res => { + console.log(res.payload.data); + if (res.success) setProblemsList([...res.payload.data,...res.payload.data]) }) }, [pepProjectId])