mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-19 00:46:37 +08:00
修改提示时间。
This commit is contained in:
parent
fc5055c766
commit
64794630c8
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user