feat(demo): hooks useRequest 异步数据管理 (#3447)

This commit is contained in:
luocong2016
2023-12-22 16:50:41 +08:00
committed by GitHub
parent 9e055ad273
commit d6d1120d00
37 changed files with 2357 additions and 65 deletions

View File

@@ -0,0 +1,8 @@
import { isBrowser } from './isBrowser';
export function isOnline(): boolean {
if (isBrowser && typeof navigator.onLine !== 'undefined') {
return navigator.onLine;
}
return true;
}