Browse Source

getConsoleAbnormal 接口请求

dev
wenlele 2 years ago
parent
commit
38c57457ef
  1. 5
      web/client/src/sections/control/containers/control.jsx

5
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])

Loading…
Cancel
Save