This commit is contained in:
Fanzink
2021-12-22 10:05:35 +08:00
parent 31c9929245
commit 433c86a379
6 changed files with 42 additions and 20 deletions

View File

@@ -42,7 +42,7 @@ const actions = {
login({ commit }, userInfo) {
const { username, password } = userInfo
return new Promise((resolve, reject) => {
login({ mobile: username.trim(), password: password }).then(res => {
login({ mobile: String(username).trim(), password }).then(res => {
console.log(res)
if (res.code === 0) {
const { token, name } = res.data