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
9246dd20
authored
Apr 26, 2025
by
CaIon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: handle optional user_group_ratio in LogsTable and render helper
parent
1ab98920
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
web/src/components/LogsTable.js
+1
-2
web/src/helpers/render.js
+1
-1
No files found.
web/src/components/LogsTable.js
View file @
9246dd20
...
@@ -920,7 +920,6 @@ const LogsTable = () => {
...
@@ -920,7 +920,6 @@ const LogsTable = () => {
other
.
completion_ratio
,
other
.
completion_ratio
,
other
.
model_price
,
other
.
model_price
,
other
.
group_ratio
,
other
.
group_ratio
,
other
.
user_group_ratio
,
other
.
cache_ratio
||
1.0
,
other
.
cache_ratio
||
1.0
,
other
.
cache_creation_ratio
||
1.0
,
other
.
cache_creation_ratio
||
1.0
,
)
)
...
@@ -929,7 +928,7 @@ const LogsTable = () => {
...
@@ -929,7 +928,7 @@ const LogsTable = () => {
other
.
completion_ratio
,
other
.
completion_ratio
,
other
.
model_price
,
other
.
model_price
,
other
.
group_ratio
,
other
.
group_ratio
,
other
.
user_group_ratio
,
other
?
.
user_group_ratio
,
),
),
});
});
}
}
...
...
web/src/helpers/render.js
View file @
9246dd20
...
@@ -448,8 +448,8 @@ export function renderLogContent(
...
@@ -448,8 +448,8 @@ export function renderLogContent(
user_group_ratio
,
user_group_ratio
,
image
=
false
,
image
=
false
,
imageRatio
=
1.0
,
imageRatio
=
1.0
,
useUserGroupRatio
=
undefined
)
{
)
{
const
useUserGroupRatio
=
isValidGroupRatio
(
user_group_ratio
);
const
ratioLabel
=
useUserGroupRatio
?
i18next
.
t
(
'专属倍率'
)
:
i18next
.
t
(
'分组倍率'
);
const
ratioLabel
=
useUserGroupRatio
?
i18next
.
t
(
'专属倍率'
)
:
i18next
.
t
(
'分组倍率'
);
const
ratio
=
useUserGroupRatio
?
user_group_ratio
:
groupRatio
;
const
ratio
=
useUserGroupRatio
?
user_group_ratio
:
groupRatio
;
...
...
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