|
@@ -26,7 +26,7 @@
|
|
<img src="@/assets/images/common/ai/system.png" alt="icon"/>
|
|
<img src="@/assets/images/common/ai/system.png" alt="icon"/>
|
|
<div v-show="!expandIndexList.includes(index)" class="bot-message-content" v-html="item.content.substring(0, 80)"></div>
|
|
<div v-show="!expandIndexList.includes(index)" class="bot-message-content" v-html="item.content.substring(0, 80)"></div>
|
|
<div v-show="expandIndexList.includes(index)" class="bot-message-content" v-html="item.content"></div>
|
|
<div v-show="expandIndexList.includes(index)" class="bot-message-content" v-html="item.content"></div>
|
|
- <el-button v-if="item.content.length>80" @click="foldOrExplandMessage(index, expandIndexList.includes(index))">{{expandIndexList.includes(index)?'折叠':'展开'}}</el-button>
|
|
|
|
|
|
+ <el-button v-if="item.content.length>80" @click="foldOrExpandMessage(index, expandIndexList.includes(index))">{{expandIndexList.includes(index)?'折叠':'展开'}}</el-button>
|
|
<el-button>播放</el-button>
|
|
<el-button>播放</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -171,7 +171,6 @@
|
|
} finally {
|
|
} finally {
|
|
streamHtmlData.value = marked(streamMarkdownData.value)
|
|
streamHtmlData.value = marked(streamMarkdownData.value)
|
|
isLoading.value = false;
|
|
isLoading.value = false;
|
|
- console.log("==============");
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -189,7 +188,7 @@
|
|
isLoading.value = false;
|
|
isLoading.value = false;
|
|
}
|
|
}
|
|
|
|
|
|
- function foldOrExplandMessage(index, flag){
|
|
|
|
|
|
+ function foldOrExpandMessage(index, flag){
|
|
activeIndex.value = index;
|
|
activeIndex.value = index;
|
|
if(flag){
|
|
if(flag){
|
|
expandIndexList.value = expandIndexList.value.filter((item)=>{
|
|
expandIndexList.value = expandIndexList.value.filter((item)=>{
|