mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-28 02:01:55 +08:00
15 lines
480 B
JavaScript
15 lines
480 B
JavaScript
//请求工具参考https://ext.dcloud.net.cn/plugin?id=392
|
|
const { http } = uni.$u
|
|
|
|
//获取用户信息
|
|
export const getUserInfo = params => http.get('/member/user/get', params)
|
|
//修改用户头像
|
|
export const updateAvatar = filePath =>
|
|
http.upload('/member/user/update-avatar', {
|
|
name: 'avatarFile',
|
|
fileType: 'image',
|
|
filePath: filePath
|
|
})
|
|
//修改用户昵称
|
|
export const updateNickname = params => http.put('/member/user/update-nickname', {}, { params })
|