From c980409e3d1fc8d1e8a3061af3d740201535a75b Mon Sep 17 00:00:00 2001 From: m1k1o Date: Wed, 10 Mar 2021 22:15:29 +0100 Subject: [PATCH] client fix build err. --- client/src/components/connect.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/client/src/components/connect.vue b/client/src/components/connect.vue index ea2608d..26b4511 100644 --- a/client/src/components/connect.vue +++ b/client/src/components/connect.vue @@ -153,8 +153,8 @@ export default class extends Vue { private autoPassword = new URL(location.href).searchParams.get('pwd') - private displayname = '' - private password = this.autoPassword + private displayname: string = '' + private password: string = this.autoPassword || '' mounted() { if (this.$accessor.displayname !== '' && this.$accessor.password !== '') { @@ -189,7 +189,11 @@ async login() { try { - await this.$accessor.login({ displayname: this.displayname, password: this.password, }) + await this.$accessor.login({ + displayname: this.displayname, + password: this.password, + }) + if (this.autoPassword) { this.removeUrlParam('pwd') this.autoPassword = ''