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
215846bf
authored
Jan 22, 2025
by
Jerry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix : chanel test did not refresh
parent
8e2059b8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
web/src/components/ChannelsTable.js
+6
-1
No files found.
web/src/components/ChannelsTable.js
View file @
215846bf
...
@@ -559,7 +559,7 @@ const ChannelsTable = () => {
...
@@ -559,7 +559,7 @@ const ChannelsTable = () => {
if
(
!
enableTagMode
)
{
if
(
!
enableTagMode
)
{
channelDates
.
push
(
channels
[
i
]);
channelDates
.
push
(
channels
[
i
]);
}
else
{
}
else
{
let
tag
=
channels
[
i
].
tag
?
channels
[
i
].
tag
:
""
;
let
tag
=
channels
[
i
].
tag
?
channels
[
i
].
tag
:
""
;
// find from channelTags
// find from channelTags
let
tagIndex
=
channelTags
[
tag
];
let
tagIndex
=
channelTags
[
tag
];
let
tagChannelDates
=
undefined
;
let
tagChannelDates
=
undefined
;
...
@@ -805,6 +805,9 @@ const ChannelsTable = () => {
...
@@ -805,6 +805,9 @@ const ChannelsTable = () => {
record
.
response_time
=
time
*
1000
;
record
.
response_time
=
time
*
1000
;
record
.
test_time
=
Date
.
now
()
/
1000
;
record
.
test_time
=
Date
.
now
()
/
1000
;
showInfo
(
t
(
'通道 ${name} 测试成功,耗时 ${time.toFixed(2)} 秒。'
).
replace
(
'${name}'
,
record
.
name
).
replace
(
'${time.toFixed(2)}'
,
time
.
toFixed
(
2
)));
showInfo
(
t
(
'通道 ${name} 测试成功,耗时 ${time.toFixed(2)} 秒。'
).
replace
(
'${name}'
,
record
.
name
).
replace
(
'${time.toFixed(2)}'
,
time
.
toFixed
(
2
)));
// 刷新列表
await
refresh
();
}
else
{
}
else
{
showError
(
message
);
showError
(
message
);
}
}
...
@@ -838,6 +841,8 @@ const ChannelsTable = () => {
...
@@ -838,6 +841,8 @@ const ChannelsTable = () => {
record
.
balance
=
balance
;
record
.
balance
=
balance
;
record
.
balance_updated_time
=
Date
.
now
()
/
1000
;
record
.
balance_updated_time
=
Date
.
now
()
/
1000
;
showInfo
(
t
(
'通道 ${name} 余额更新成功!'
).
replace
(
'${name}'
,
record
.
name
));
showInfo
(
t
(
'通道 ${name} 余额更新成功!'
).
replace
(
'${name}'
,
record
.
name
));
// 刷新列表
await
refresh
();
}
else
{
}
else
{
showError
(
message
);
showError
(
message
);
}
}
...
...
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