diff --git a/src/exchange/ExchangeItem.js b/src/exchange/ExchangeItem.js index cf0911ae1..bf7522575 100644 --- a/src/exchange/ExchangeItem.js +++ b/src/exchange/ExchangeItem.js @@ -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 diff --git a/src/exchange/Manage/SubSendItem.js b/src/exchange/Manage/SubSendItem.js index 2a0e49d4b..658ec120a 100644 --- a/src/exchange/Manage/SubSendItem.js +++ b/src/exchange/Manage/SubSendItem.js @@ -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=>{