用户信息修改
This commit is contained in:
@@ -34,13 +34,22 @@ export function login(params: LoginData) {
|
||||
})
|
||||
}
|
||||
|
||||
//获取用户信息
|
||||
export function getUserById() {
|
||||
const adminInfo = useAdminInfo()
|
||||
return request({
|
||||
url: '/user-boot/user/getUserById?id=' + adminInfo.userIndex,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 刷新token
|
||||
export function refreshToken(): Promise<any> {
|
||||
const adminInfo = useAdminInfo()
|
||||
return login({
|
||||
grant_type: 'refresh_token',
|
||||
refresh_token: adminInfo.refresh_token,
|
||||
username: adminInfo.username
|
||||
username: adminInfo.loginName
|
||||
})
|
||||
}
|
||||
|
||||
@@ -108,8 +117,7 @@ export async function updatePassword(params: any) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
export function checkUser(data:any) {
|
||||
export function checkUser(data: any) {
|
||||
return request({
|
||||
url: '/user-boot/user/check',
|
||||
method: 'put',
|
||||
|
||||
Reference in New Issue
Block a user