🐝 Fix: [前台]:修复无法新增书签
This commit is contained in:
parent
b41f3f072b
commit
d5934357ea
@ -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 }));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user