mirror of https://github.com/halo-dev/halo-admin
refactor: update get current login user api
Signed-off-by: Ryan Wang <i@ryanc.cc>pull/588/head
parent
8f95fce0e4
commit
7655134732
|
@ -132,7 +132,9 @@ async function loadPluginModules() {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function loadCurrentUser() {
|
async function loadCurrentUser() {
|
||||||
const response = await axiosInstance.get(`/custom-api/v1alpha1/users/me`);
|
const response = await axiosInstance.get(
|
||||||
|
`/apis/api.halo.run/v1alpha1/users/-`
|
||||||
|
);
|
||||||
app.provide<User>("currentUser", response.data);
|
app.provide<User>("currentUser", response.data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue