|
@@ -302,6 +302,9 @@ const LogsTable = () => {
|
|
|
let content = '渠道:' + record.channel;
|
|
let content = '渠道:' + record.channel;
|
|
|
if (record.other !== '') {
|
|
if (record.other !== '') {
|
|
|
let other = JSON.parse(record.other);
|
|
let other = JSON.parse(record.other);
|
|
|
|
|
+ if (other === null) {
|
|
|
|
|
+ return <></>
|
|
|
|
|
+ }
|
|
|
if (other.admin_info !== undefined) {
|
|
if (other.admin_info !== undefined) {
|
|
|
if (
|
|
if (
|
|
|
other.admin_info.use_channel !== null &&
|
|
other.admin_info.use_channel !== null &&
|
|
@@ -322,7 +325,8 @@ const LogsTable = () => {
|
|
|
title: '详情',
|
|
title: '详情',
|
|
|
dataIndex: 'content',
|
|
dataIndex: 'content',
|
|
|
render: (text, record, index) => {
|
|
render: (text, record, index) => {
|
|
|
- if (record.other === '') {
|
|
|
|
|
|
|
+ let other = JSON.parse(record.other);
|
|
|
|
|
+ if (other == null) {
|
|
|
return (
|
|
return (
|
|
|
<Paragraph
|
|
<Paragraph
|
|
|
ellipsis={{
|
|
ellipsis={{
|
|
@@ -338,7 +342,6 @@ const LogsTable = () => {
|
|
|
</Paragraph>
|
|
</Paragraph>
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
- let other = JSON.parse(record.other);
|
|
|
|
|
let content = renderModelPrice(
|
|
let content = renderModelPrice(
|
|
|
record.prompt_tokens,
|
|
record.prompt_tokens,
|
|
|
record.completion_tokens,
|
|
record.completion_tokens,
|