Skip to content

Commit 789d21c

Browse files
committed
fix: bug fix
1 parent 888f5ee commit 789d21c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

frontend/src/views/chat/index.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@
268268
:src="currentChatEngineType"
269269
width="16px"
270270
height="16px"
271+
v-if="currentChatEngineType"
271272
alt=""
272273
/>
273274
<span class="name">
@@ -440,10 +441,7 @@ function onClickHistory(chat: Chat) {
440441
}
441442
442443
const currentChatEngineType = computed(() => {
443-
return (
444-
dsTypeWithImg.find((ele) => currentChat.value.ds_type === ele.type || ele.type === 'excel') ||
445-
{}
446-
).img
444+
return (dsTypeWithImg.find((ele) => currentChat.value.ds_type === ele.type) || {}).img
447445
})
448446
449447
function toAssistantHistory(chat: Chat) {

0 commit comments

Comments
 (0)