Commit 38f82779 by GuoRuqiang

修改提示时间。

parent 36662d4c
...@@ -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('当前没有可用的启用令牌,请确认是否有令牌处于启用状态!');
window.location.href = '/token'; setTimeout(() => {
window.location.href = '/token';
}, 1500); // 延迟 1.5 秒后跳转
} }
setKeys(fetchedKeys); setKeys(fetchedKeys);
setIsLoading(false); setIsLoading(false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment