chore: audio api adjust

This commit is contained in:
jialin
2024-11-27 19:35:19 +08:00
parent 230120fff5
commit 60c92b8a98
12 changed files with 73 additions and 67 deletions
@@ -278,13 +278,16 @@ const GroundEmbedding: React.FC<MessageProps> = forwardRef((props, ref) => {
const text = e.clipboardData.getData('text');
if (text) {
console.log('text:', text);
const dataLlist = text.split('\n').map((item: string) => {
return {
text: item,
uid: inputListRef.current?.setMessageId(),
name: ''
};
});
const dataLlist = text
.split('\n')
.map((item: string) => {
return {
text: item,
uid: inputListRef.current?.setMessageId(),
name: ''
};
})
.filter((item: any) => item.text);
setTextList([...textList.slice(0, index), ...dataLlist]);
}
},