feat: 调整界面

master
xjs 2025-04-16 10:19:29 +08:00
parent 6b53487f85
commit 97683aa4dc
3 changed files with 10 additions and 8 deletions

View File

@ -102,7 +102,7 @@
justify-content: space-between;
font-weight: 400;
font-size: 14px;
font-size: 16px;
color: #000000;
margin-top: 18px;

View File

@ -21,6 +21,7 @@
align-items: center;
gap: 10px;
margin-top: 10px;
font-size: 16px;
}
.right{

View File

@ -59,6 +59,13 @@ function Conversation(props: React.HTMLAttributes<HTMLDivElement>) {
useEffect(() => {
if(isFirst && initMsg && isAudioBotEnabled){
RtcClient.commandAudioBot(COMMAND.EXTERNAL_TEXT_TO_LLM, INTERRUPT_PRIORITY.HIGH, initMsg);
dispatch(
setCurrentMsg({
text: initMsg,
user: RtcClient.basicInfo.user_id,
paragraph: true,
definite: true,
}))
dispatch(
setHistoryMsg({
text: initMsg,
@ -67,13 +74,7 @@ function Conversation(props: React.HTMLAttributes<HTMLDivElement>) {
definite: true,
})
);
dispatch(
setCurrentMsg({
text: initMsg,
user: RtcClient.basicInfo.user_id,
paragraph: true,
definite: true,
}))
setIsFirst(false)
}
},[isAudioBotEnabled])