提交 2e9a8cd2 authored 作者: 钟是志's avatar 钟是志

接口容错

上级 6d329306
...@@ -177,9 +177,12 @@ class AffairPage extends React.Component { ...@@ -177,9 +177,12 @@ class AffairPage extends React.Component {
getColumns = () => { getColumns = () => {
const { workId } = this.state; const { workId } = this.state;
service.getColumns(workId).then((response) => { service.getColumns(workId).then((response) => {
if(response && Array.isArray(response)){
response = response.filter((x) => { response = response.filter((x) => {
return x.title !== '流程进度'; return x.title !== '流程进度';
}); });
}
if (response) { if (response) {
this.setState( this.setState(
{ {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论