头像本地缓存
This commit is contained in:
@@ -17,7 +17,7 @@ const config = {
|
||||
let loginHintState = false
|
||||
|
||||
// 网络请求
|
||||
const request = (parameter, hideLoding) => {
|
||||
const request = (parameter, hideLoding = true) => {
|
||||
// 检查url配置
|
||||
if(parameter.url === 'undefined' || parameter.url === ''){
|
||||
uni.showToast({
|
||||
|
||||
@@ -14,11 +14,10 @@ const getFriends = () => {
|
||||
}, true)
|
||||
}
|
||||
|
||||
const getUserInfo = async (targetId) => {
|
||||
const [err, res] = await uni.request({
|
||||
url: 'http://api.zh.shangkelian.cn/api/im/userInfo/' + targetId,
|
||||
const getUserInfo = (targetId) => {
|
||||
return request({
|
||||
url: 'im/userInfo/' + targetId,
|
||||
})
|
||||
return res.data.data
|
||||
}
|
||||
|
||||
export {
|
||||
|
||||
Reference in New Issue
Block a user