| | |
| | | </view> |
| | | <view style="font-size: 26rpx;" v-html="markdown.render(item.aiLog)"></view> |
| | | <view class="file-list" v-if="item.docInfo.length&&item.isEnd"> |
| | | <view class="one-file" v-for="(file,findex) in item.docInfo" :key='findex'> |
| | | <view class="one-file" @click="uploadFile(file)" v-for="(file,findex) in item.docInfo" :key='findex'> |
| | | <image :src="getImg(file.docFormat)" mode=""></image> |
| | | <text>{{file.docName}}</text> |
| | | <text style="font-size: 26rpx;">{{file.docName}}</text> |
| | | </view> |
| | | </view> |
| | | <view v-if="item.isEnd||item.logSound" class="u-flex u-p-h-10 function-box"> |
| | |
| | | <image src="/static/wd/i02.png" v-if="msg&&!isDisabled" class="btnimg" @click="tiWen" |
| | | mode="widthFix" alt=""></image> |
| | | </block> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="tipsMsg"> 内容由 AI 生成,仅供参考,您据此所作判断及操作均由您自行承担责任。</view> |
| | | <!--设置弹窗 --> |
| | | <u-popup v-model="showSet" mode='top' border-radius="20"> |
| | | <view class='set-box'> |
| | |
| | | document.removeEventListener('contextmenu', this.noContextmenu) |
| | | }, |
| | | methods: { |
| | | uploadFile(file) { |
| | | window.open(this.baseUrl + file.docPath) |
| | | }, |
| | | chooseThisLLM(e) { |
| | | this.chooseLlm = e; |
| | | }, |
| | |
| | | } |
| | | // 解码数据数组的前半部分,并提取文档ID |
| | | const idStr = textDecoder.decode(dataArr.slice(0, idx)).trim() |
| | | const idArr = idStr.substring(idStr.indexOf(":") + 1).match(/\d+/g) |
| | | const docIds = idArr.join(',') |
| | | // const idArr = idStr.substring(idStr.indexOf(":") + 1).match(/\d+/g) |
| | | const idArr = idStr.substring(idStr.indexOf(":") + 1) |
| | | const docIds = idArr.split(',') |
| | | // 如果文档ID有效且不为'0',则查询文档 |
| | | if (docIds && docIds !== '0' && !this.suspend) { |
| | | // 根据文档ID列表获取文档信息 |
| | |
| | | // lastMsgBot.scrollIntoView(false) |
| | | }) |
| | | }) |
| | | return idArr.join(',') |
| | | return idArr.split(',') |
| | | } |
| | | return docIds |
| | | }, |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | .tipsMsg{ |
| | | position: fixed; |
| | | bottom: 0rpx; |
| | | text-align: center; |
| | | color: #c0c4cc; |
| | | height: 80rpx; |
| | | font-size: 26rpx; |
| | | } |
| | | .btmbox { |
| | | position: fixed; |
| | | bottom: 0; |
| | | bottom: 80rpx; |
| | | height: 120rpx; |
| | | background-color: #F3F5F9; |
| | | display: flex; |
| | |
| | | } |
| | | |
| | | text { |
| | | font-size: 30rpx; |
| | | font-size: 26rpx; |
| | | color: #101828; |
| | | line-height: 50rpx; |
| | | font-weight: 400; |