From 10db5271d7f7b466b5f71c1bb0e67cda8068b200 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Wed, 14 Oct 2020 17:07:49 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forums/New.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/forums/New.jsx b/src/forums/New.jsx index f958d98e..ddb6efe9 100644 --- a/src/forums/New.jsx +++ b/src/forums/New.jsx @@ -183,8 +183,8 @@ function New(props, ref) { } if(forumId){ // 编辑保存 - const url = `/memos/${forumId}/update.json`; - axios.post(url, params).then((result) => { + const url = `/memos/${forumId}.json`; + axios.put(url, params).then((result) => { if (result && result.data) { notification.open({ message: "提示",