修改提示时间。

This commit is contained in:
GuoRuqiang 2024-08-17 16:59:31 +00:00
parent fc5055c766
commit 64794630c8

View File

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