vue 插件监听路由
视听连接器 (vue-connection-listener)
Whenever the navigator's connection status changes a 'connection' event is emitted with a boolean payload indicating the new state (online = true, offline = false).
每当导航器的连接状态更改时,都会发出“连接”事件,并带有一个指示新状态的布尔有效负载(在线= true,离线= false)。