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