0👍
✅
You are using an arrow function for your isHttps
computed. In that context, this
refers to window
not the Vue instance, so you will get a cannot read property of undefined
message, the correct ES2015 syntax is:
isHttps() {
return this.config.scheme === 'https'
}
That is also the same problem with server: () => this.$store.state.server
which should be:
server() {
return this.$store.state.server
}
Source:stackexchange.com