fix autoconnect for set url.

This commit is contained in:
Miroslav Šedivý 2023-05-01 00:07:15 +02:00
parent 2ee592baf3
commit 645c4aa184

View File

@ -310,11 +310,13 @@
// save token to state // save token to state
Vue.set(this.state.connection, 'token', token) Vue.set(this.state.connection, 'token', token)
if (!this.autologin) return // try to authenticate and connect
await this.authenticate() if (this.autoconnect) {
try {
if (!this.autoconnect) return await this.authenticate()
this.connect() this.connect()
} catch {}
}
} }
public async authenticate(token?: string) { public async authenticate(token?: string) {