Skip to content

Commit 3f448ac

Browse files
committed
fix: bug fix
1 parent aefca28 commit 3f448ac

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

frontend/src/views/chat/ChatListContainer.vue

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,11 @@ function onChatRenamed(chat: Chat) {
214214
/>
215215
</el-header>
216216
<el-main class="chat-list">
217+
<div v-if="!computedChatList.length" class="empty-search">
218+
{{ !!search ? $t('datasource.relevant_content_found') : $t('dashboard.no_chat') }}
219+
</div>
217220
<ChatList
221+
v-else
218222
v-model:loading="_loading"
219223
:current-chat-id="_currentChatId"
220224
:chat-list="computedChatList"
@@ -294,6 +298,16 @@ function onChatRenamed(chat: Chat) {
294298
295299
.chat-list {
296300
padding: 0 0 20px 0;
301+
302+
.empty-search {
303+
width: 100%;
304+
text-align: center;
305+
margin-top: 80px;
306+
color: #646a73;
307+
font-weight: 400;
308+
font-size: 14px;
309+
line-height: 22px;
310+
}
297311
}
298312
}
299313
</style>

0 commit comments

Comments
 (0)