diff --git a/web/src/components/LogsTable.js b/web/src/components/LogsTable.js index f8436ad..d94eb60 100644 --- a/web/src/components/LogsTable.js +++ b/web/src/components/LogsTable.js @@ -302,6 +302,9 @@ const LogsTable = () => { let content = '渠道:' + record.channel; if (record.other !== '') { let other = JSON.parse(record.other); + if (other === null) { + return <> + } if (other.admin_info !== undefined) { if ( other.admin_info.use_channel !== null && @@ -322,7 +325,8 @@ const LogsTable = () => { title: '详情', dataIndex: 'content', render: (text, record, index) => { - if (record.other === '') { + let other = JSON.parse(record.other); + if (other == null) { return ( { ); } - let other = JSON.parse(record.other); let content = renderModelPrice( record.prompt_tokens, record.completion_tokens,