fix: Low version browsers do not have the at function (#1870)

This commit is contained in:
shaohuzhang1 2024-12-18 18:26:27 +08:00 committed by GitHub
parent 832b0dbd63
commit bcdc2fd883
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -138,7 +138,7 @@ export class ChatRecordManage {
) {
return this.write_node_info
}
const run_node = this.node_list.filter((item) => item.buffer.length > 0 || !item.is_end).at(0)
const run_node = this.node_list.filter((item) => item.buffer.length > 0 || !item.is_end)[0]
if (run_node) {
const index = this.node_list.indexOf(run_node)