🐝 Fix: [前台]:修复无法新增书签

This commit is contained in:
fanxb 2019-08-02 22:02:08 +08:00
parent b41f3f072b
commit d5934357ea

View File

@ -149,7 +149,7 @@ class AddModal extends React.Component {
if (!isOk) { if (!isOk) {
return; return;
} }
this.state({ isLoading: true }); this.setState({ isLoading: true });
httpUtil httpUtil
.put("/bookmark", body) .put("/bookmark", body)
.then(res => { .then(res => {
@ -165,7 +165,7 @@ class AddModal extends React.Component {
} }
updateTreeData(treeData); updateTreeData(treeData);
closeModal(); closeModal();
this.state({ isLoading: false }); this.setState({ isLoading: false });
}) })
.catch(() => this.setState({ isLoading: false })); .catch(() => this.setState({ isLoading: false }));
} }