From 57ab5d119925abae903b7306f648114d3ca3c930 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Tue, 11 May 2021 17:48:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E7=BD=AE=E9=A1=B6=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=90=8D=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/exchange/ExchangeItem.js | 2 +- src/exchange/Manage/SubSendItem.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/exchange/ExchangeItem.js b/src/exchange/ExchangeItem.js index cf0911ae..bf752257 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 2a0e49d4..658ec120 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=>{