mirror of
https://github.com/Tencent/WeKnora.git
synced 2026-06-04 13:30:32 +08:00
feat: add loading indicator for non-Agent mode in botmsg component
This commit is contained in:
@@ -31,6 +31,14 @@
|
||||
<div v-for="(token, index) in markdownTokens" :key="index" v-html="renderToken(token)"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Streaming indicator (non-Agent mode) -->
|
||||
<div v-if="hasActualContent && !session.is_completed" class="loading-indicator">
|
||||
<div class="loading-typing">
|
||||
<span></span>
|
||||
<span></span>
|
||||
<span></span>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 复制和添加到知识库按钮 - 非 Agent 模式下显示 -->
|
||||
<div v-if="session.is_completed && (content || session.content)" class="answer-toolbar">
|
||||
<t-button size="small" variant="outline" shape="round" @click.stop="handleCopyAnswer" :title="$t('agent.copy')">
|
||||
@@ -548,6 +556,10 @@ onBeforeUnmount(() => {
|
||||
padding: 8px 0;
|
||||
}
|
||||
|
||||
.loading-indicator {
|
||||
padding: 8px 0;
|
||||
}
|
||||
|
||||
.loading-typing {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
Reference in New Issue
Block a user