Refactor arguments check
This commit is contained in:
parent
536c791f66
commit
6843b76ebf
2 changed files with 18 additions and 17 deletions
|
|
@ -31,7 +31,7 @@ export default {
|
|||
return this.post("signup", { name })
|
||||
},
|
||||
|
||||
async login(password: string) {
|
||||
return this.post("login", { password })
|
||||
async login(key: string) {
|
||||
return this.post("login", { key })
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue