Browse Source

助手优化

master
xueyinfei 1 month ago
parent
commit
f2668c3975
  1. 4
      vue-fastapi-frontend/src/views/aichat/MdRenderer.vue
  2. 2
      vue-fastapi-frontend/src/views/aichat/aichat.vue

4
vue-fastapi-frontend/src/views/aichat/MdRenderer.vue

@ -15,12 +15,12 @@
<el-icon><FullScreen/></el-icon> <el-icon><FullScreen/></el-icon>
</el-button> </el-button>
</div> </div>
<div v-if="item.type === 'docs'" style="width: 100%;margin-top: 5px"> <div v-else-if="item.type === 'docs'" style="width: 100%;margin-top: 5px">
<div v-for="doc in item.content"> <div v-for="doc in item.content">
<el-link type="primary" @click="downLoadFile(doc)" :underline="false">{{ doc.file_name }}</el-link> <el-link type="primary" @click="downLoadFile(doc)" :underline="false">{{ doc.file_name }}</el-link>
</div> </div>
</div> </div>
<div v-if="item.type === 'router'" style="width: 100%;margin-top: 5px"> <div v-else-if="item.type === 'router'" style="width: 100%;margin-top: 5px">
<el-link :underline="false" type="primary" @click="jumpToPath(item.content)">{{'点击跳转'+ item.content.name}}</el-link> <el-link :underline="false" type="primary" @click="jumpToPath(item.content)">{{'点击跳转'+ item.content.name}}</el-link>
</div> </div>
<div v-else style="width: 100%;margin-top: 5px"> <div v-else style="width: 100%;margin-top: 5px">

2
vue-fastapi-frontend/src/views/aichat/aichat.vue

@ -30,7 +30,7 @@
</div> </div>
<!-- 回答 --> <!-- 回答 -->
<div v-if="item.type === 'answer'" class="item-content mb-16 lighter" style="font-weight: 400"> <div v-if="item.type === 'answer'" class="item-content mb-16 lighter" style="font-weight: 400">
<el-popconfirm v-if="index < chatList.length-1 && (chatList[chatList.length-1].isEnd || chatList[chatList.length-1].isEnd)" popper-style="z-index:3000" title="确定要回到这一步吗?" @confirm="confirmReturn(item,index)"> <el-popconfirm v-if="chatList[chatList.length-1].isEnd || chatList[chatList.length-1].isEnd" popper-style="z-index:3000" title="确定要回到这一步吗?" @confirm="confirmReturn(item,index)">
<template #reference> <template #reference>
<div class="returnToHere" style="margin-top: 5px;margin-bottom: 5px"> <div class="returnToHere" style="margin-top: 5px;margin-bottom: 5px">
<i class="ri-bookmark-2-fill returnToHereIcon"></i> <i class="ri-bookmark-2-fill returnToHereIcon"></i>

Loading…
Cancel
Save