This commit is contained in:
唐明明
2023-02-13 11:58:29 +08:00
parent da7b903547
commit 8d8c14ec66
33 changed files with 879 additions and 90 deletions

View File

@@ -56,6 +56,7 @@
username: this.phone,
password: this.password
}).then(res => {
uni.hideLoading()
// 存储登录凭证
this.$store.commit('setToken', res.token_type + ' ' + res.access_token);
this.onBack()

View File

@@ -107,6 +107,7 @@
} catch (err){
this.$Router.replaceAll({name: 'Index'})
}
uni.hideLoading()
}).catch(err => {
uni.showToast({
title: err.message,
@@ -125,6 +126,7 @@
this.captchaImg = img
this.captchaKey = key
this.captchaShow = true
uni.hideLoading()
}).catch(err => {
uni.showToast({
title: err.message,

View File

@@ -118,6 +118,7 @@
this.captchaImg = img
this.captchaKey = key
this.captchaShow = true
uni.hideLoading()
}).catch(err => {
uni.showToast({
title: err.message,