Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a1f2ffc7
authored
May 21, 2024
by
1808837298@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: log page error (close #270)
parent
f5befd5a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
web/src/components/LogsTable.js
+5
-2
No files found.
web/src/components/LogsTable.js
View file @
a1f2ffc7
...
...
@@ -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
(
<
Paragraph
ellipsis
=
{{
...
...
@@ -338,7 +342,6 @@ const LogsTable = () => {
<
/Paragraph
>
);
}
let
other
=
JSON
.
parse
(
record
.
other
);
let
content
=
renderModelPrice
(
record
.
prompt_tokens
,
record
.
completion_tokens
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment