refactor: update get current login user api

Signed-off-by: Ryan Wang <i@ryanc.cc>
pull/588/head
Ryan Wang 2022-07-08 14:40:14 +08:00
parent 8f95fce0e4
commit 7655134732
1 changed files with 3 additions and 1 deletions

View File

@ -132,7 +132,9 @@ async function loadPluginModules() {
}
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);
}