feat: add offline check (#247)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
This commit is contained in:
parent
93d78d9c8b
commit
96775ebcf3
6 changed files with 32 additions and 6 deletions
17
components/common/OfflineChecker.vue
Normal file
17
components/common/OfflineChecker.vue
Normal file
|
@ -0,0 +1,17 @@
|
|||
<script setup lang="ts">
|
||||
defineProps<{
|
||||
smallScreen: boolean
|
||||
}>()
|
||||
const online = useOnline()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div
|
||||
v-if="!online"
|
||||
w-full min-h-30px px4 py3 text-primary bg-base
|
||||
border="t base" flex="~ gap-2 center"
|
||||
>
|
||||
<div i-ri:wifi-off-line />
|
||||
{{ $t('common.offline_desc') }}
|
||||
</div>
|
||||
</template>
|
Loading…
Add table
Add a link
Reference in a new issue