mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-05 17:58:55 +00:00
change loading timer to 2 seconds
This commit is contained in:
1 parent
877a641ae1
commit
c4c876e01f
1 file changed
+2
-2
@@ -139,13 +139,13 @@ function TtsModelListPage(props: Props) {
|
||||
setLoading(true);
|
||||
setTimeout(() => {
|
||||
setLoading(false);
|
||||
}, 1000);
|
||||
}, 2000);
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
const timeout = setTimeout(() => {
|
||||
setLoading(false);
|
||||
}, 1000);
|
||||
}, 2000);
|
||||
return () => clearTimeout(timeout);
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in new issue
Block a user