头像本地缓存

This commit is contained in:
2022-01-19 14:13:18 +08:00
parent 070c6c729e
commit ced9257131
12 changed files with 1211 additions and 33 deletions

View File

@@ -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 {