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