From d5934357ea162dca5158488976298e28a993f208 Mon Sep 17 00:00:00 2001 From: fanxb Date: Fri, 2 Aug 2019 22:02:08 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9D=20Fix:=20[=E5=89=8D=E5=8F=B0]:?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95=E6=96=B0=E5=A2=9E=E4=B9=A6?= =?UTF-8?q?=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/pages/manage/OverView/AddModal.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/front/src/pages/manage/OverView/AddModal.jsx b/front/src/pages/manage/OverView/AddModal.jsx index 17cfb16..1155fd6 100644 --- a/front/src/pages/manage/OverView/AddModal.jsx +++ b/front/src/pages/manage/OverView/AddModal.jsx @@ -149,7 +149,7 @@ class AddModal extends React.Component { if (!isOk) { return; } - this.state({ isLoading: true }); + this.setState({ isLoading: true }); httpUtil .put("/bookmark", body) .then(res => { @@ -165,7 +165,7 @@ class AddModal extends React.Component { } updateTreeData(treeData); closeModal(); - this.state({ isLoading: false }); + this.setState({ isLoading: false }); }) .catch(() => this.setState({ isLoading: false })); }