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
38f82779
authored
Aug 17, 2024
by
GuoRuqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改提示时间。
parent
36662d4c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
web/src/components/fetchTokenKeys.js
+2
-0
No files found.
web/src/components/fetchTokenKeys.js
View file @
38f82779
...
@@ -49,7 +49,9 @@ export function useTokenKeys() {
...
@@ -49,7 +49,9 @@ export function useTokenKeys() {
const
fetchedKeys
=
await
fetchTokenKeys
();
const
fetchedKeys
=
await
fetchTokenKeys
();
if
(
fetchedKeys
.
length
===
0
)
{
if
(
fetchedKeys
.
length
===
0
)
{
showError
(
'当前没有可用的启用令牌,请确认是否有令牌处于启用状态!'
);
showError
(
'当前没有可用的启用令牌,请确认是否有令牌处于启用状态!'
);
setTimeout
(()
=>
{
window
.
location
.
href
=
'/token'
;
window
.
location
.
href
=
'/token'
;
},
1500
);
// 延迟 1.5 秒后跳转
}
}
setKeys
(
fetchedKeys
);
setKeys
(
fetchedKeys
);
setIsLoading
(
false
);
setIsLoading
(
false
);
...
...
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