diff --git a/web/index.html b/web/index.html index a434cced..a02a0d35 100644 --- a/web/index.html +++ b/web/index.html @@ -10,13 +10,6 @@ Memos -
diff --git a/web/src/store/v2/user.ts b/web/src/store/v2/user.ts index a2ceb76c..77f2a70f 100644 --- a/web/src/store/v2/user.ts +++ b/web/src/store/v2/user.ts @@ -41,8 +41,8 @@ const userStore = (() => { }; const fetchUserByUsername = async (username: string) => { - const user = await userServiceClient.getUser({ - name: username, + const user = await userServiceClient.getUserByUsername({ + username, }); state.setPartial({ userMapByName: {