|
|
@@ -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);
|