|
@@ -172,7 +172,6 @@
|
|
|
|
|
|
|
|
this.$api.login.expandLogin(this.form).then(res => {
|
|
this.$api.login.expandLogin(this.form).then(res => {
|
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
|
- this.requestStatus=false
|
|
|
|
|
uni.setStorageSync('accessToken', res.data.data.access_token)
|
|
uni.setStorageSync('accessToken', res.data.data.access_token)
|
|
|
this.$api.user.getUserInfo().then(res=>{
|
|
this.$api.user.getUserInfo().then(res=>{
|
|
|
console.log('获取到的用户信息:',res.data.data,'获取到的用户头像',res.data.data.img)
|
|
console.log('获取到的用户信息:',res.data.data,'获取到的用户头像',res.data.data.img)
|
|
@@ -184,6 +183,7 @@
|
|
|
title: '登陆成功'
|
|
title: '登陆成功'
|
|
|
});
|
|
});
|
|
|
setTimeout(()=>{
|
|
setTimeout(()=>{
|
|
|
|
|
+ this.requestStatus=false
|
|
|
uni.switchTab({
|
|
uni.switchTab({
|
|
|
url: "/pages/index/index"
|
|
url: "/pages/index/index"
|
|
|
})
|
|
})
|