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
6f9f7a0b
authored
Dec 24, 2024
by
CalciumIon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: #657
parent
975b4a46
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
web/src/components/LogsTable.js
+2
-8
No files found.
web/src/components/LogsTable.js
View file @
6f9f7a0b
...
...
@@ -445,17 +445,11 @@ const LogsTable = () => {
});
const
handleInputChange
=
(
value
,
name
)
=>
{
if
(
value
&&
(
name
===
'start_timestamp'
||
name
===
'end_timestamp'
))
{
// 确保日期值是有效的
const
dateValue
=
typeof
value
===
'string'
?
value
:
timestamp2string
(
value
);
setInputs
(
inputs
=>
({
...
inputs
,
[
name
]:
dateValue
}));
}
else
{
setInputs
(
inputs
=>
({
...
inputs
,
[
name
]:
value
}));
}
setInputs
(
inputs
=>
({
...
inputs
,
[
name
]:
value
}));
};
const
getLogSelfStat
=
async
()
=>
{
let
localStartTimestamp
=
Date
.
parse
(
3
)
/
1000
;
let
localStartTimestamp
=
Date
.
parse
(
start_timestamp
)
/
1000
;
let
localEndTimestamp
=
Date
.
parse
(
end_timestamp
)
/
1000
;
let
url
=
`/api/log/self/stat?type=
${
logType
}
&token_name=
${
token_name
}
&model_name=
${
model_name
}
&start_timestamp=
${
localStartTimestamp
}
&end_timestamp=
${
localEndTimestamp
}
&group=
${
group
}
`
;
url
=
encodeURI
(
url
);
...
...
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