Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ユーザーページの改善 #152

Merged
merged 1 commit into from
Jun 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions src/pages/UserPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,21 @@ import UserDetailContainer from '/@/components/User/UserDetailContainer.vue'
import apis from '/@/lib/apis'
import useParam from '/@/lib/param'

const userId = useParam('userId')
const userDetail = (await apis.getUser(userId.value)).data
const userProjects = (await apis.getUserProjects(userId.value)).data
const userContests = (await apis.getUserContests(userId.value)).data
const userGroups = (await apis.getUserGroups(userId.value)).data
const userUId = useParam('userId')
// uuid
const userId = (await apis.getUsers(undefined, userUId.value)).data[0]?.id ?? ''

const [
{ data: userDetail },
{ data: userProjects },
{ data: userContests },
{ data: userGroups }
] = await Promise.all([
apis.getUser(userId),
apis.getUserProjects(userId),
apis.getUserContests(userId),
apis.getUserGroups(userId)
])
// const userEvents = (await apis.getUserEvents(userId.value)).data
</script>

Expand Down
Loading