登录成功

This commit is contained in:
liuye
2024-06-18 09:53:21 +08:00
parent 54661dec73
commit 28d6b3c9a9
2 changed files with 4 additions and 2 deletions

View File

@@ -281,8 +281,9 @@ export default {
this.autoLogin({loginWay: 'admin', phoneCode}).then(() => {
this.getUserInfo()
this.getHistoryList()
this.$u.toast('登录成功')
})
} else this.$u.toast("已登录,无需重新登录!")
}
},
},
}

View File

@@ -70,8 +70,9 @@
if (!this.token) {
this.autoLogin({loginWay: 'admin', phoneCode}).then(() => {
this.getUserInfo()
this.$u.toast('登录成功')
})
} else this.$u.toast("已登录,无需重新登录!")
}
},
onLogout() {
uni.showModal({