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
d30ae820
authored
Jun 09, 2025
by
skynono
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: balance unit sync
parent
e1039c67
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
web/src/components/table/ChannelsTable.js
+3
-3
web/src/helpers/render.js
+1
-1
No files found.
web/src/components/table/ChannelsTable.js
View file @
d30ae820
...
@@ -6,7 +6,7 @@ import {
...
@@ -6,7 +6,7 @@ import {
showSuccess
,
showSuccess
,
timestamp2string
,
timestamp2string
,
renderGroup
,
renderGroup
,
render
NumberWithPoi
nt
,
render
QuotaWithAmou
nt
,
renderQuota
renderQuota
}
from
'../../helpers/index.js'
;
}
from
'../../helpers/index.js'
;
...
@@ -328,7 +328,7 @@ const ChannelsTable = () => {
...
@@ -328,7 +328,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'
...
@@ -336,7 +336,7 @@ const ChannelsTable = () => {
...
@@ -336,7 +336,7 @@ const ChannelsTable = () => {
shape
=
'circle'
shape
=
'circle'
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 @
d30ae820
...
@@ -764,7 +764,7 @@ export function renderQuotaWithAmount(amount) {
...
@@ -764,7 +764,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