Skip to content

Commit

Permalink
refactor: 优化代码
Browse files Browse the repository at this point in the history
  • Loading branch information
wxg0103 committed Oct 23, 2024
1 parent fa2b928 commit c9f6941
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion ui/src/components/ai-chat/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,14 @@
<!-- 问题 -->
<div class="item-content mb-16 lighter">
<div class="avatar">
<AppAvatar>
<el-image
v-if="data.user_avatar"
:src="data.user_avatar"
alt=""
fit="cover"
style="width: 30px; height: 30px; display: block"
/>
<AppAvatar v-else>
<img src="@/assets/user-icon.svg" style="width: 54%" alt="" />
</AppAvatar>
</div>
Expand Down Expand Up @@ -214,6 +221,13 @@
</el-button>
</div>
</div>
<div
class="chat-width"
v-if="data.disclaimer"
style="align-items: center; text-align: center; margin-top: 10px"
>
{{ data.disclaimer_value }}
</div>
</div>
</div>
</template>
Expand Down

0 comments on commit c9f6941

Please sign in to comment.