Browse Source

fix -> 修改列表内容

Young 1 year ago
parent
commit
c0becf0879
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/pages/tags/list.js

+ 6 - 0
src/pages/tags/list.js

@@ -64,6 +64,12 @@ class TagList extends PureComponent {
                 const data = res.data.records;
                 const Img = this.props.ListImg;
                 let arr = [];
+                if (data==null){
+                    this.setState({
+                        finished: true
+                    })
+                    return
+                }
                 data.forEach((item) => {
                     arr.push({
                         id: item.id,