This commit is contained in:
weipengfei 2023-10-13 15:57:45 +08:00
parent 861d7e553b
commit 5ad7a4b1e6
1 changed files with 5 additions and 2 deletions

View File

@ -29,6 +29,7 @@ import lodingCir from "@/components/animation/lodingCir.vue"
import lodingSpin from "@/components/animation/lodingSpin.vue"
import IatRecorder from '@/utils/test.js'
import { start } from 'repl'
// import IatRecorder from '@/utils/larRcorder.js'
// import socket from "@/websocket/socket";
@ -110,7 +111,8 @@ const conversationList = computed(() =>
const prompt = ref<string>('')
const loading = ref<boolean>(false)
const inputRef = ref<Ref | null>(null)
const nowStatus = ref('input') // , input, loding, record
const nowStatus = ref('input') // , input, loding, record, start
const nowStart = ref(true) // ,
// PromptStore
const promptStore = usePromptStore()
@ -220,6 +222,7 @@ async function onConversation() {
// console.log(`: `, dataSources.value[dataSources.value.length - 1].text);
lastText += msg.payload.choices.text[0].content
const loading = true
nowStart.value = false
updateChat(
+uuid,
dataSources.value.length - 1,
@ -619,7 +622,7 @@ window.addEventListener('test', (e) => {
<!-- <lodingCir v-else-if="nowStatus=='loding'" key="loding"></lodingCir> -->
</transition>
</indexBG>
<div class="flex flex-col w-full h-full" :style="{'max-width': maxWeight + 'px'}">
<div v-if="!nowStart" class="flex flex-col w-full h-full" :style="{'max-width': maxWeight + 'px'}">
<HeaderComponent
v-if="isMobile"
:using-context="usingContext"