Skip to content

useOnline ​

获取是否在线。基于 useNetwork。

typescript
import { useOnline } from '@uni-helper/uni-use'

const isOnline = useOnline()

Released under the MIT License.