Revert "feat: add BaseUserAvatar and unify avatar usage"

This reverts commit efbb83924b.
This commit is contained in:
tim
2025-09-24 00:30:23 +08:00
parent 0f75a95dbe
commit a1eccb3b1e
15 changed files with 91 additions and 263 deletions
+7 -5
View File
@@ -17,14 +17,13 @@
></div>
</div>
<div class="poll-participants">
<BaseUserAvatar
<BaseImage
v-for="p in pollOptionParticipants[idx] || []"
:key="p.id"
class="poll-participant-avatar"
:user-id="p.id"
:avatar="p.avatar"
:username="p.username"
:width="30"
:src="p.avatar"
alt="avatar"
@click="gotoUser(p.id)"
/>
</div>
</div>
@@ -153,6 +152,8 @@ watch([hasVoted, pollEnded], ([voted, ended]) => {
if (voted || ended) showPollResult.value = true
})
const gotoUser = (id) => navigateTo(`/users/${id}`, { replace: true })
const config = useRuntimeConfig()
const API_BASE_URL = config.public.apiBaseUrl
const voteOption = async (idx) => {
@@ -425,6 +426,7 @@ const submitMultiPoll = async () => {
.poll-participant-avatar {
width: 30px;
height: 30px;
border-radius: 50%;
cursor: pointer;
}
</style>