同步
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -118,6 +118,7 @@
|
||||
this.captchaImg = img
|
||||
this.captchaKey = key
|
||||
this.captchaShow = true
|
||||
uni.hideLoading()
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
|
||||
Reference in New Issue
Block a user