|  |  | @@ -569,7 +569,7 @@ | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | <p>{{ $t("createVideo.SmartText") }}</p> | 
		
	
		
			
			|  |  |  | <!-- 语言 --> | 
		
	
		
			
			|  |  |  | <div class="text"> | 
		
	
		
			
			|  |  |  | <div class="text" style="cursor: text"> | 
		
	
		
			
			|  |  |  | <!-- 文本域 --> | 
		
	
		
			
			|  |  |  | <el-input | 
		
	
		
			
			|  |  |  | id="textInputId" | 
		
	
	
		
			
				|  |  | @@ -931,7 +931,11 @@ async function getPreviewAudio() { | 
		
	
		
			
			|  |  |  | previewAudioUrl.value = res.data.data; | 
		
	
		
			
			|  |  |  | document.getElementById("audio").play(); | 
		
	
		
			
			|  |  |  | } catch (error) { | 
		
	
		
			
			|  |  |  | ElMessage.error(error); | 
		
	
		
			
			|  |  |  | ElMessage.error( | 
		
	
		
			
			|  |  |  | lanChange.value == "zh-cn" | 
		
	
		
			
			|  |  |  | ? `暂时无法试听,请稍后重试` | 
		
	
		
			
			|  |  |  | : `Unable to listen, please try again later` | 
		
	
		
			
			|  |  |  | ); | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | //#endregion | 
		
	
	
		
			
				|  |  | @@ -1401,16 +1405,16 @@ function createWS() { | 
		
	
		
			
			|  |  |  | }; | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | mySocket.onmessage = (event) => { | 
		
	
		
			
			|  |  |  | console.log("接收到 WebSocket 消息2:", event.data); | 
		
	
		
			
			|  |  |  | // console.log("接收到 WebSocket 消息2:", event.data); | 
		
	
		
			
			|  |  |  | if (!event.data) { | 
		
	
		
			
			|  |  |  | return; | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | if (event.data == "___talk_end___") { | 
		
	
		
			
			|  |  |  | sendLoading.value = false; | 
		
	
		
			
			|  |  |  | mySocket.close(); | 
		
	
		
			
			|  |  |  | return; | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | answerContent.value = answerContent.value + event.data; | 
		
	
		
			
			|  |  |  | answerContent.value.replace("null", ""); | 
		
	
		
			
			|  |  |  | }; | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | mySocket.onclose = () => { | 
		
	
	
		
			
				|  |  | @@ -1430,6 +1434,7 @@ function createWS() { | 
		
	
		
			
			|  |  |  | // 点击发送需求 | 
		
	
		
			
			|  |  |  | async function sendRequirement() { | 
		
	
		
			
			|  |  |  | if (!problemContent.value) { | 
		
	
		
			
			|  |  |  | mySocket.close(); | 
		
	
		
			
			|  |  |  | return; | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | const sendMessage = [ | 
		
	
	
		
			
				|  |  | @@ -2244,7 +2249,9 @@ onUnmounted(() => { | 
		
	
		
			
			|  |  |  | float: right; | 
		
	
		
			
			|  |  |  | margin-top: 10px; | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | :deep(.el-textarea__inner) { | 
		
	
		
			
			|  |  |  | cursor: text; | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | :deep(.el-textarea__inner) { | 
		
	
		
			
			|  |  |  | resize: none; | 
		
	
		
			
			|  |  |  | box-shadow: none; | 
		
	
	
		
			
				|  |  | 
 |