chore: return username in user response

This commit is contained in:
Steven
2023-12-23 19:23:39 +08:00
parent b8eaf1d57e
commit 8e325f9986
18 changed files with 333 additions and 348 deletions

View File

@ -1,9 +1,8 @@
import { useUserStore } from "@/store/v1";
import { User } from "@/types/proto/api/v2/user_service";
const useCurrentUser = () => {
const userStore = useUserStore();
return userStore.currentUser as User;
return userStore.getUserByUsername(userStore.currentUser?.username || "");
};
export default useCurrentUser;