perf(data): improve fetch interval from 2s to 5s

pull/4/head
Kairee Wu 7 years ago
parent f1e2cc2be5
commit 4bd86e3f7b
No known key found for this signature in database
GPG Key ID: E91BB34E2C3FDA63

@ -23,7 +23,7 @@ const App: React.FC = () => {
setIsOnline(true); setIsOnline(true);
}) })
.catch(e => console.log('错误:',e)) .catch(e => console.log('错误:',e))
}, 2000); }, 5000);
return () => { return () => {
clearInterval(fetchData); clearInterval(fetchData);
} }

Loading…
Cancel
Save