[feat] add init animation
This commit is contained in:
@@ -45,13 +45,14 @@ export function Prepare() {
|
||||
setInited(steam.state.steamDirValid && steam.state.cs2DirValid)
|
||||
// 逻辑有点问题,第一次启动时检查成功直接跳转,第一次检查失败不跳转,用户手动点击
|
||||
if (allCheckPassed) {
|
||||
router.push("/home")
|
||||
return
|
||||
setTimeout(() => {
|
||||
router.push("/home")
|
||||
}, 500)
|
||||
} else {
|
||||
setTimeout(() => {
|
||||
setLoading(false)
|
||||
}, 800)
|
||||
}
|
||||
|
||||
setTimeout(() => {
|
||||
setLoading(false)
|
||||
}, 300)
|
||||
}
|
||||
initValues()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user