Skip to content

Commit

Permalink
fix: fix icon not find issue #55
Browse files Browse the repository at this point in the history
Signed-off-by: seven <[email protected]>
  • Loading branch information
Blankll committed May 6, 2024
1 parent 03348a1 commit b104018
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/layout/components/chatbot-box.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@
<div class="message-list">
<n-scrollbar ref="scrollbarRef" style="height: 100%">
<div v-for="msg in chats[0]?.messages" :key="msg.id">
<div
:class="[
'message-row',
msg.role === ChatMessageRole.USER ? 'user' : '',
]"
>
<div :class="['message-row', msg.role === ChatMessageRole.USER ? 'user' : '']">
<div class="message-row-header">
<n-icon size="26">
<bot v-if="msg.role === ChatMessageRole.BOT" />
Expand Down Expand Up @@ -40,7 +35,6 @@
minRows: 3,
maxRows: 6,
}"
@keyup.enter="submitMsg"
placeholder="Type your message here..."
/>
</div>
Expand All @@ -57,7 +51,7 @@

<script setup lang="ts">
import { storeToRefs } from 'pinia';
import { Bot, SendAlt } from '@vicons/carbon';
import { Bot, SendAlt, FaceCool } from '@vicons/carbon';
import { ChatMessageRole, useChatStore } from '../../store';
import MarkdownRender from '../../components/MarkdownRender.vue';
Expand Down

0 comments on commit b104018

Please sign in to comment.