Vue.js question detail
How to identify whether code is running on client or server?
You can use vm.$isServer method to know whether the current Vue instance is running on the server or client.
The usage would be as below,
const Vue = require('vue');
Vue.prototype.$isServer
(OR)
this.$isServer // With in component