Archived
2
0

client fix build err.

This commit is contained in:
m1k1o 2021-03-10 22:15:29 +01:00
parent 085806d1b2
commit c980409e3d

View File

@ -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 = ''