dev-prepare #2

Merged
purp1e merged 42 commits from dev-prepare into master 2025-03-24 02:16:40 +08:00
Showing only changes of commit 2247640dc1 - Show all commits

View File

@@ -52,16 +52,18 @@ export function Prepare() {
trailing: true,
maxWait: 2500,
})
const [checkCount, setCheckCount] = useState(0)
useEffect(() => {
setCheckCount((prev) => (prev >= 10 ? 10 : prev + 1))
// console.log(checkCount, "触发", debounceValid, steam.state.steamDir, steam.state.cs2Dir)
if (debounceValid && app.state.inited) {
if (checkCount < 2 && debounceValid && app.state.inited) {
setTimeout(() => {
router.push("/home")
}, 500)
}, 800)
} else {
setTimeout(() => {
setLoading(false)
}, 800)
}, 1000)
}
}, [debounceValid])