|
|
|
@ -223,7 +223,7 @@ class MemoDetail extends Component {
|
|
|
|
|
this.createNewComment(commentContent, id, editor);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
const url = `/api/v1/memos/${id}/reply`;
|
|
|
|
|
const url = `/memos/${id}/reply.json`;
|
|
|
|
|
const { comments } = this.state;
|
|
|
|
|
const user = this._getUser();
|
|
|
|
|
/*
|
|
|
|
@ -473,14 +473,14 @@ class MemoDetail extends Component {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
const url = `/api/v1/memos/${memo.id}/reply`;
|
|
|
|
|
const url = `/memos/${memo.id}/reply.json`;
|
|
|
|
|
let { comments } = this.state;
|
|
|
|
|
const user = this._getUser();
|
|
|
|
|
axios.post(url, {
|
|
|
|
|
content: content
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
withCredentials: true
|
|
|
|
|
// withCredentials: true
|
|
|
|
|
}
|
|
|
|
|
).then((response) => {
|
|
|
|
|
if (response.data.status === -1) {
|
|
|
|
@ -584,9 +584,9 @@ class MemoDetail extends Component {
|
|
|
|
|
params.forum_id = this.state.p_forum_id;
|
|
|
|
|
}
|
|
|
|
|
let paramsUrl = urlStringify(params)
|
|
|
|
|
const set_top_or_down_Url = `/api/v1/memos/${memo.id}/set-top-or-down?${paramsUrl}`;
|
|
|
|
|
const set_top_or_down_Url = `/memos/${memo.id}/sticky_or_cancel.json?${paramsUrl}`;
|
|
|
|
|
// 获取memo list
|
|
|
|
|
axios.get(set_top_or_down_Url, {
|
|
|
|
|
axios.post(set_top_or_down_Url, {
|
|
|
|
|
// withCredentials: true,
|
|
|
|
|
})
|
|
|
|
|
.then((response) => {
|
|
|
|
|