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
5f5333eb
authored
Jun 09, 2025
by
Calcium-Ion
Committed by
GitHub
Jun 09, 2025
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1181 from feitianbubu/fix-balance-unit-sync
fix: balance unit sync
parents
be71bbb6
c821b0ed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
web/src/components/table/ChannelsTable.js
+2
-2
web/src/helpers/render.js
+1
-1
No files found.
web/src/components/table/ChannelsTable.js
View file @
5f5333eb
...
@@ -256,7 +256,7 @@ const ChannelsTable = () => {
...
@@ -256,7 +256,7 @@ const ChannelsTable = () => {
{
renderQuota
(
record
.
used_quota
)}
{
renderQuota
(
record
.
used_quota
)}
<
/Tag
>
<
/Tag
>
<
/Tooltip
>
<
/Tooltip
>
<
Tooltip
content
=
{
t
(
'剩余额度'
)
+
record
.
balance
+
t
(
',点击更新'
)}
>
<
Tooltip
content
=
{
t
(
'剩余额度
$
'
)
+
record
.
balance
+
t
(
',点击更新'
)}
>
<
Tag
<
Tag
color
=
'white'
color
=
'white'
type
=
'ghost'
type
=
'ghost'
...
@@ -265,7 +265,7 @@ const ChannelsTable = () => {
...
@@ -265,7 +265,7 @@ const ChannelsTable = () => {
prefixIcon
=
{
<
Coins
size
=
{
14
}
/>
}
prefixIcon
=
{
<
Coins
size
=
{
14
}
/>
}
onClick
=
{()
=>
updateChannelBalance
(
record
)}
onClick
=
{()
=>
updateChannelBalance
(
record
)}
>
>
$
{
renderNumberWithPoi
nt
(
record
.
balance
)}
{
renderQuotaWithAmou
nt
(
record
.
balance
)}
<
/Tag
>
<
/Tag
>
<
/Tooltip
>
<
/Tooltip
>
<
/Space
>
<
/Space
>
...
...
web/src/helpers/render.js
View file @
5f5333eb
...
@@ -854,7 +854,7 @@ export function renderQuotaWithAmount(amount) {
...
@@ -854,7 +854,7 @@ export function renderQuotaWithAmount(amount) {
if
(
displayInCurrency
)
{
if
(
displayInCurrency
)
{
return
'$'
+
amount
;
return
'$'
+
amount
;
}
else
{
}
else
{
return
render
UnitWithQuota
(
amount
);
return
render
Number
(
renderUnitWithQuota
(
amount
)
);
}
}
}
}
...
...
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