22 lines
362 B
Vue
22 lines
362 B
Vue
|
<template>
|
||
|
<offline @detected-condition="handleConnectivityChange">
|
||
|
<div slot="offline">
|
||
|
<p>OFFLINE</p>
|
||
|
</div>
|
||
|
</offline>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
import offline from 'v-offline';
|
||
|
export default {
|
||
|
name: "LocalConn",
|
||
|
components: {
|
||
|
offline
|
||
|
},
|
||
|
methods: {
|
||
|
handleConnectivityChange(status) {
|
||
|
console.log(status);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</script>
|