add operator avatar for PushLogTimeline.vue

This commit is contained in:
Timi
2025-07-23 10:32:08 +08:00
parent f5c10bf892
commit cb509834f5

View File

@@ -12,7 +12,13 @@
<t-card class="item">
<div>
<div class="user">
<icon class="avatar" name="USER"/>
<t-avatar
class="avatar"
:class="(<any>ImageType)[action.operator.profile.avatarType]"
:image="UserAPI.getAvatarURL(action.operator.profile)"
size="small"
shape="round"
/>
<span v-text="action.operator.name"></span>
</div>
<div v-if="showRepo" class="repository">
@@ -57,7 +63,7 @@
</template>
<script lang="ts" setup>
import { Icon, Time } from "timi-web";
import { ImageType, Time, UserAPI } from "timi-web";
import { MessagePlugin } from "tdesign-vue-next";
import { ActionLogView } from "@/types/Common.ts";
@@ -91,6 +97,7 @@ const { items } = toRefs(props);
.user {
display: flex;
align-items: center;
.avatar {
margin-right: .5rem;