File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments