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 60782669ea - Show all commits

View File

@@ -9,10 +9,12 @@ import { /* relaunch, */ exit } from "@tauri-apps/plugin-process"
import { useTheme } from "next-themes"
import { usePathname, useRouter } from "next/navigation"
import { saveAllNow } from "@tauri-store/valtio"
import { useSteamStore } from "@/store/steam"
const Nav = () => {
const app = useAppStore()
const tool = useToolStore()
const steam = useSteamStore()
const { theme, setTheme } = useTheme()
const setAppTheme = async (theme: Theme) => {
setTheme(theme)
@@ -50,11 +52,13 @@ const Nav = () => {
onClick={() => {
app.resetAppStore()
tool.resetToolStore()
steam.resetSteamStore()
addToast({
title: "重置成功",
color: "success",
// description: "已重置所有设置",
})
router.push("/")
}}
>
<Refresh size={16} />