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 })); }