You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
432 B
23 lines
432 B
3 years ago
|
import { request } from '@/common/js/request.js'
|
||
|
|
||
|
// 获得用户的基本信息
|
||
|
export function getUserInfo() {
|
||
|
return request({
|
||
|
url: 'member/user/profile/get',
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 修改
|
||
|
export function updateNickname(nickname) {
|
||
|
return request({
|
||
|
url: 'member/user/profile/update-nickname',
|
||
|
method: 'post',
|
||
|
header: {
|
||
|
"Content-Type": "application/x-www-form-urlencoded"
|
||
|
},
|
||
|
data: {
|
||
|
nickname
|
||
|
}
|
||
|
})
|
||
|
}
|