[go: up one dir, main page]

Skip to content

Commit

Permalink
修改提示时间。
Browse files Browse the repository at this point in the history
  • Loading branch information
guoruqiang committed Aug 17, 2024
1 parent fc5055c commit 6479463
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/src/components/fetchTokenKeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ export function useTokenKeys() {
const fetchedKeys = await fetchTokenKeys();
if (fetchedKeys.length === 0) {
showError('当前没有可用的启用令牌,请确认是否有令牌处于启用状态!');
window.location.href = '/token';
setTimeout(() => {
window.location.href = '/token';
}, 1500); // 延迟 1.5 秒后跳转
}
setKeys(fetchedKeys);
setIsLoading(false);
Expand Down

0 comments on commit 6479463

Please sign in to comment.