feat: 调整界面
parent
6b53487f85
commit
97683aa4dc
|
|
@ -102,7 +102,7 @@
|
|||
justify-content: space-between;
|
||||
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
font-size: 16px;
|
||||
color: #000000;
|
||||
|
||||
margin-top: 18px;
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
align-items: center;
|
||||
gap: 10px;
|
||||
margin-top: 10px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.right{
|
||||
|
|
|
|||
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Reference in New Issue