From 4eb0becfe9e79c6d2b2a2e53cb612e0bbd5dd1ca Mon Sep 17 00:00:00 2001 From: orzyyyy Date: Wed, 25 Sep 2019 08:44:57 +0800 Subject: [PATCH] fix(document): correct api for hiding List.Item --- src/controller/MainPageDataController.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controller/MainPageDataController.tsx b/src/controller/MainPageDataController.tsx index 6a420920b..13f1946f1 100644 --- a/src/controller/MainPageDataController.tsx +++ b/src/controller/MainPageDataController.tsx @@ -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('隐藏完成'); };