Browse Source

fix-留言成功之后关闭弹窗

shaogen1995 2 năm trước cách đây
mục cha
commit
5a9a72b95c
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      pc/src/pages/A2Main/Tab4Msg/index.tsx

+ 2 - 1
pc/src/pages/A2Main/Tab4Msg/index.tsx

@@ -45,9 +45,10 @@ function Tab4Msg({ closeFu, btnOkFlag, barrageList, goodsId }: Props) {
       const res = await A2_APIsaveBarrage(obj);
       if (res.code === 0) {
         MessageFu.success("留言成功,等待审核");
+        closeFu()
       }
     },
-    [goodsId]
+    [closeFu, goodsId]
   );
 
   return (