chore: audio api adjust
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user