取消置顶接口名错误

This commit is contained in:
caishi 2021-05-11 17:48:58 +08:00
parent 6d9af5c906
commit 57ab5d1199
2 changed files with 2 additions and 2 deletions

View File

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

View File

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