zmr #45

Merged
zhaomingrui merged 3 commits from zmr into master 2020-07-03 02:59:02 +00:00

View File

@@ -152,6 +152,13 @@
console.log(res) console.log(res)
// console.log(res) // console.log(res)
if (res.errCode == 0) { if (res.errCode == 0) {
if(res.data == ''){
this.$refs.uToast.show({
title: res.message,
type: 'error'
})
return false
}else{
// 缓存用户的信息 // 缓存用户的信息
uni.setStorage({ uni.setStorage({
key: 'user_info', key: 'user_info',
@@ -164,6 +171,8 @@
}) })
} }
}); });
}
// 存储接口请求所需token // 存储接口请求所需token
uni.setStorage({ uni.setStorage({