| | |
| | | /> |
| | | <div class="flex-auto flex" :class="{ 'justify-end': item.role === RoleEnum.user }"> |
| | | <div class="inline-flex flex-col" :class="{ 'w-full': item.role === RoleEnum.assistant }"> |
| | | <div class="w-full" v-if="isTalking && index === computedMessageList.length - 1"> |
| | | <div class="text-sm rounded-[6px] p-4 leading-relaxed bg-white" |
| | | v-if="item.role === RoleEnum.assistant"> |
| | | <div class="w-full" v-if="isTalking && index === computedMessageList.length - 1"> |
| | | <div class="text-sm rounded-[6px] p-4 leading-relaxed bg-white" v-if="item.role === RoleEnum.assistant"> |
| | | <!-- 过程输出 --> |
| | | <el-steps direction="vertical" :active="activeStep"> |
| | | <!-- <el-step title="process" status="process" /> |
| | |
| | | currentIndex.value = (currentIndex.value + history_data.value.length - 1) % history_data.value.length; |
| | | } |
| | | messageContent.value.values = history_data.value[currentIndex.value].content.values; |
| | | scrollToBottom(); |
| | | }; |
| | | //显示下一条消息 |
| | | const showDownChatClick = () => { |
| | |
| | | currentIndex.value = (currentIndex.value + 1) % history_data.value.length; |
| | | } |
| | | messageContent.value.values = history_data.value[currentIndex.value].content.values; |
| | | scrollToBottom(); |
| | | }; |
| | | //#endregion |
| | | const { |