forked from Gitlink/forgeplus-react
取消置顶接口名错误
This commit is contained in:
parent
6d9af5c906
commit
57ab5d1199
|
@ -65,7 +65,7 @@ class ExchangeItem extends Component {
|
|||
// 取消置顶+置顶
|
||||
topEvent = (sticky,id) =>{
|
||||
const { refresh } = this.props;
|
||||
const url =`/memos/${id}/set-top-or-down`;
|
||||
const url =`/memos/${id}/set_top_or_down`;
|
||||
|
||||
axios.get(url,{params:{
|
||||
sticky:sticky ? 0 : 1
|
||||
|
|
|
@ -74,7 +74,7 @@ class SubSendItem extends Component {
|
|||
// 取消置顶/置顶-已发布的帖子
|
||||
stickyEvent=(id,flag)=>{
|
||||
const { page } = this.state;
|
||||
const url = `/memos/${id}/set-top-or-down`;
|
||||
const url = `/memos/${id}/set_top_or_down`;
|
||||
axios.get(url,{params:{
|
||||
sticky:flag ? 0 : 1
|
||||
}}).then(result=>{
|
||||
|
|
Loading…
Reference in New Issue