Browse Source

fix -> 修改字段名称

Young 1 year ago
parent
commit
f1ff89dcd9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/pages/article/components/Comments.js

+ 2 - 2
src/pages/article/components/Comments.js

@@ -118,7 +118,7 @@ class Comments extends PureComponent {
 
     addComments() {
         const {value, id, parentId, preContent} = this.state;
-        const data = {content: value, postsId: id};
+        const data = {content: value, postId: id};
         if (value === '') {
             message.warning('please type a comment');
             return false
@@ -166,7 +166,7 @@ class Comments extends PureComponent {
             params: {
                 page: page,
                 size: 5,
-                postsId: id
+                postId: id
             }
         }).then((res) => {
             if (res.code === 0) {