Skip to content

Commit

Permalink
fix(document): correct api for hiding List.Item
Browse files Browse the repository at this point in the history
  • Loading branch information
orzyyyy committed Sep 25, 2019
1 parent 610bb02 commit 4eb0bec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/controller/MainPageDataController.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,13 @@ const MainPageDataController = () => {
};

const handleHide = async ({ id }: MappingProps) => {
await fetch('document/update', {
await fetch('document/hide', {
body: JSON.stringify({ id }),
method: 'POST',
headers: { 'Content-Type': 'application/json' },
});
getSider();
getMapping();
message.success('隐藏完成');
};

Expand Down

0 comments on commit 4eb0bec

Please sign in to comment.