2024-09-27 15:28:32 +08:00
|
|
|
|
"use client"
|
2025-03-12 13:16:25 +08:00
|
|
|
|
import { currentUser, steamStore } from "@/store/steam"
|
|
|
|
|
|
import { useEffect } from "react"
|
|
|
|
|
|
import { useSnapshot } from "valtio"
|
2024-10-28 10:42:42 +08:00
|
|
|
|
|
2024-09-27 15:28:32 +08:00
|
|
|
|
export default function Page() {
|
2025-03-12 22:17:12 +08:00
|
|
|
|
steamStore.start()
|
2025-03-12 13:16:25 +08:00
|
|
|
|
const steam = useSnapshot(steamStore.state)
|
2024-10-28 10:42:42 +08:00
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
|
<div className="flex flex-col items-start gap-3 pt-2 pb-1">
|
|
|
|
|
|
<p>Steam路径:{steam.dir}</p>
|
|
|
|
|
|
<p>游戏路径:{steam.csDir}</p>
|
|
|
|
|
|
<p>Steam路径有效:{steam.isDirValid ? "是" : "否"}</p>
|
|
|
|
|
|
<p>游戏路径有效:{steam.isCsDirValid ? "是" : "否"}</p>
|
2025-03-12 13:16:25 +08:00
|
|
|
|
<p>Steam账号:{currentUser().accountName}</p>
|
2024-10-28 10:42:42 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
)
|
2024-09-27 15:28:32 +08:00
|
|
|
|
}
|