feat: 调整界面
parent
6b53487f85
commit
97683aa4dc
|
|
@ -102,7 +102,7 @@
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 14px;
|
font-size: 16px;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
|
|
||||||
margin-top: 18px;
|
margin-top: 18px;
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.right{
|
.right{
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,13 @@ function Conversation(props: React.HTMLAttributes<HTMLDivElement>) {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if(isFirst && initMsg && isAudioBotEnabled){
|
if(isFirst && initMsg && isAudioBotEnabled){
|
||||||
RtcClient.commandAudioBot(COMMAND.EXTERNAL_TEXT_TO_LLM, INTERRUPT_PRIORITY.HIGH, initMsg);
|
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(
|
dispatch(
|
||||||
setHistoryMsg({
|
setHistoryMsg({
|
||||||
text: initMsg,
|
text: initMsg,
|
||||||
|
|
@ -67,13 +74,7 @@ function Conversation(props: React.HTMLAttributes<HTMLDivElement>) {
|
||||||
definite: true,
|
definite: true,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
dispatch(
|
|
||||||
setCurrentMsg({
|
|
||||||
text: initMsg,
|
|
||||||
user: RtcClient.basicInfo.user_id,
|
|
||||||
paragraph: true,
|
|
||||||
definite: true,
|
|
||||||
}))
|
|
||||||
setIsFirst(false)
|
setIsFirst(false)
|
||||||
}
|
}
|
||||||
},[isAudioBotEnabled])
|
},[isAudioBotEnabled])
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue