This commit is contained in:
zmr900709
2020-07-03 10:50:02 +08:00
parent b7f5711c02
commit d5eb0e6908

View File

@@ -149,6 +149,13 @@
console.log(res)
// console.log(res)
if (res.errCode == 0) {
if(res.data == ''){
this.$refs.uToast.show({
title: res.message,
type: 'error'
})
return false
}else{
// 缓存用户的信息
uni.setStorage({
key: 'user_info',
@@ -161,6 +168,8 @@
})
}
});
}
// 存储接口请求所需token
uni.setStorage({
@@ -180,7 +189,6 @@
type: 'error'
})
}
})
},
// qq授权登录