mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-08 05:42:39 +02:00
client fix build err.
This commit is contained in:
parent
085806d1b2
commit
c980409e3d
1 changed files with 7 additions and 3 deletions
|
@ -153,8 +153,8 @@
|
||||||
export default class extends Vue {
|
export default class extends Vue {
|
||||||
private autoPassword = new URL(location.href).searchParams.get('pwd')
|
private autoPassword = new URL(location.href).searchParams.get('pwd')
|
||||||
|
|
||||||
private displayname = ''
|
private displayname: string = ''
|
||||||
private password = this.autoPassword
|
private password: string = this.autoPassword || ''
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
if (this.$accessor.displayname !== '' && this.$accessor.password !== '') {
|
if (this.$accessor.displayname !== '' && this.$accessor.password !== '') {
|
||||||
|
@ -189,7 +189,11 @@
|
||||||
|
|
||||||
async login() {
|
async login() {
|
||||||
try {
|
try {
|
||||||
await this.$accessor.login({ displayname: this.displayname, password: this.password, })
|
await this.$accessor.login({
|
||||||
|
displayname: this.displayname,
|
||||||
|
password: this.password,
|
||||||
|
})
|
||||||
|
|
||||||
if (this.autoPassword) {
|
if (this.autoPassword) {
|
||||||
this.removeUrlParam('pwd')
|
this.removeUrlParam('pwd')
|
||||||
this.autoPassword = ''
|
this.autoPassword = ''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue