diff --git a/unilife-frontend/src/views/ai/AIAssistantView.vue b/unilife-frontend/src/views/ai/AIAssistantView.vue index f7d05ed..1744a92 100644 --- a/unilife-frontend/src/views/ai/AIAssistantView.vue +++ b/unilife-frontend/src/views/ai/AIAssistantView.vue @@ -36,11 +36,39 @@ v-for="chat in chatHistory" :key="chat.id" class="chat-item" - :class="{ active: currentChatId === chat.id }" - @click="loadChat(chat.id)" + :class="{ + active: currentChatId === chat.id, + loading: isLoadingChat && currentChatId === chat.id + }" + @click="handleChatItemClick(chat.id)" > -