web: Common: Fixed api people getUser with userName
This commit is contained in:
parent
10fd09750d
commit
c56f7e0c46
@ -15,10 +15,10 @@ export function getUserList(filter = Filter.getDefault()) {
|
||||
});
|
||||
}
|
||||
|
||||
export function getUser(userId="") {
|
||||
export function getUser(userName = null) {
|
||||
return request({
|
||||
method: "get",
|
||||
url: `/people/${userId || '@self.json'}`
|
||||
url: `/people/${userName || '@self'}.json`
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user