mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-30 11:11:55 +08:00
7c8fe2fc50
2. 改造 UserDO,接入多租户
23 lines
432 B
JavaScript
23 lines
432 B
JavaScript
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
|
|
}
|
|
})
|
|
} |