|
@@ -47,7 +47,7 @@
|
|
|
<ScrollToBottom :target="scrollbar" ref="scrollToBottomRef" />
|
|
|
</div>
|
|
|
|
|
|
- <Tools v-if="selectModal" :disHistory="sendLoading" :upload="type === FunctionList.File_Operation || !!formInfo" @read-click="readClick" @upload-file="(file) => createFileObj(file)" @handle-capture="handleCapture" @his-records="hisRecords"
|
|
|
+ <Tools :disHistory="sendLoading" :upload="type === FunctionList.File_Operation || !!formInfo" @read-click="readClick" @upload-file="(file) => createFileObj(file)" @handle-capture="handleCapture" @his-records="hisRecords"
|
|
|
@add-new-dialogue="addNewDialogue" @handle-current-change="handleCurrentChange"
|
|
|
@handel-intelligent-filling-click="handelIntelligentFillingClick" />
|
|
|
|
|
@@ -116,6 +116,7 @@
|
|
|
<script setup>
|
|
|
import { ref, onMounted, nextTick, inject, useTemplateRef, reactive,onBeforeMount } from 'vue'
|
|
|
import { ElScrollbar, ElAvatar, ElInput, ElButton } from 'element-plus'
|
|
|
+import moment from 'moment'
|
|
|
import fileLogo from '@/assets/svg/file.svg'
|
|
|
import {
|
|
|
getFileContent,
|
|
@@ -316,11 +317,11 @@ async function handelIntelligentFillingClick() {
|
|
|
|
|
|
function handleCurrentChange(e) {
|
|
|
msgStore.updateAIModel(e)
|
|
|
- // if (AIModel.value.file === true) {
|
|
|
- // isShowPage.value = false
|
|
|
- // taklToHtml.value = false
|
|
|
- // pageInfoList.value = []
|
|
|
- // }
|
|
|
+ if (AIModel.value.file === true) {
|
|
|
+ isShowPage.value = false
|
|
|
+ taklToHtml.value = false
|
|
|
+ pageInfoList.value = []
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
async function handleCurrentData(e) {
|
|
@@ -486,14 +487,12 @@ async function createWS(msg) {
|
|
|
const websocketId= uuidv4()
|
|
|
const wsUrl = `${import.meta.env.VITE_API_WS_URL}/webSocket/clue/${websocketId}`;
|
|
|
const socket = new WebSocket(wsUrl);
|
|
|
- console.log(selectModal.value);
|
|
|
-
|
|
|
askQues({
|
|
|
conversationId: msgUuid.value,
|
|
|
websocketId,
|
|
|
- modelName: selectModal.value.modelName,
|
|
|
+ modelName: '通义千问-Max',
|
|
|
question: type.value === FunctionList.File_Operation ? msg.rawContent : buildObjPrompt(xlsxData.value,formInfo.value),
|
|
|
- id: selectModal.value.id,
|
|
|
+ id: '699637194561691650',
|
|
|
redisKey:msg.redisKey
|
|
|
}).catch(res => {
|
|
|
obj.rawContent = '接口出错,请重试。'
|
|
@@ -681,10 +680,11 @@ let a = null
|
|
|
// 组件挂载时滚动到底部
|
|
|
onBeforeMount(async () => {
|
|
|
await msgStore.initMsg()
|
|
|
- await msgStore.initModal()
|
|
|
+ // await msgStore.initModal()
|
|
|
})
|
|
|
onMounted(async () => {
|
|
|
- // msgStore.updateAIModel(options[0].options[0])
|
|
|
+ msgStore.updateAIModel(options[0].options[0])
|
|
|
+
|
|
|
useAutoResizeTextarea(tareRef, inputMessage)
|
|
|
chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
|
|
|
if (message.type === 'TO_SIDE_PANEL_PAGE_INFO') {
|