zhejiushizhuce пре 2 година
родитељ
комит
63e349a769

+ 3 - 1
src/api/request.js

@@ -43,7 +43,9 @@ const checkResponse=(data)=>{
                 type:"main/updateOpenPay",
                 payload:1,
             }
-            if (global.dispatch)global.dispatch(action);
+            setTimeout(()=>{
+                if (global.dispatch)global.dispatch(action);
+            },1000)
         }
     }
 }

+ 2 - 2
src/widgets/WWithdraw/AccountEdit.jsx

@@ -1,9 +1,9 @@
 import styles from './styles.module.scss';
 import BRAccountEdit from "@widgets/WWithdraw/BR/BRAccountEdit";
-const AccountEdit=({close})=>{
+const AccountEdit=({...props})=>{
     return (
         <div className={styles.container}>
-            <BRAccountEdit/>
+            <BRAccountEdit {...props}/>
         </div>
     )
 }

+ 1 - 0
src/widgets/WWithdraw/BR/BRAccountEdit.jsx

@@ -57,6 +57,7 @@ const BRAccountEdit=({close})=>{
     const callback=(data)=>{
         if (data&&data.code===200){
             // dispatch(reqWithdrawBaseInfo(callbackBase));
+            close();
         }
     }
     const handleChange=(data)=>{

+ 4 - 3
src/widgets/WWithdraw/BR/BRWithdraw.jsx

@@ -27,9 +27,10 @@ const BRWithdraw=()=>{
     const dispatch = useDispatch();
     const status=useSelector(getWDPayoutStatus);
     useEffect(()=>{
-       if (info==null){
-           dispatch(reqWithdrawBaseInfo())
-       }
+       // if (info==null){
+       //     dispatch(reqWithdrawBaseInfo())
+       // }
+        dispatch(reqWithdrawBaseInfo())
     },[])
     const checkBank=()=>{
         if (info!=null){