[Vuejs]-Vuex access data property

0👍

You can pass the online status as an argument from your component…

or you can easily check the online status using navigator.onLine (used by vue-offline, see the file).

So it will be in your store:

if (navigator.onLine)

Here is an example showing the online status in the console using both methods:
https://codesandbox.io/s/vuex-store-9zhy3

Leave a comment