Small fix

This commit is contained in:
saplf
2019-09-08 17:37:56 +08:00
parent b65b7c611e
commit 240daa107e
7 changed files with 44 additions and 25 deletions

View File

@@ -19,11 +19,8 @@ const MinePage: React.FC<HomeMineModelState & DispatchProp> = ({
}) => {
useEffect(() => {
if (!data || errorList) {
dispatch({ type: 'homeMine/loadList', payload: false });
}
if (!info || errorBasic) {
dispatch({ type: 'homeMine/loadBasic' });
if (!data || errorList || !info || errorBasic) {
dispatch({ type: 'homeMine/load' });
}
}, []);