From 38c57457ef07cbc0227d15eb3b4f1b368b86aa34 Mon Sep 17 00:00:00 2001 From: wenlele Date: Mon, 31 Oct 2022 10:54:08 +0800 Subject: [PATCH] =?UTF-8?q?getConsoleAbnormal=20=20=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/client/src/sections/control/containers/control.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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])