|
@@ -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) {
|