From 42b32105849b28a33fe09ed6406cd620f0b45af5 Mon Sep 17 00:00:00 2001 From: Purp1e <438518244@qq.com> Date: Fri, 27 Sep 2024 16:13:05 +0800 Subject: [PATCH] fix: build problem --- src/app/prepare/page.tsx | 6 +++--- src/components/window/Nav.tsx | 2 +- src/types/cfgx.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/prepare/page.tsx b/src/app/prepare/page.tsx index dc30391..2f56abc 100644 --- a/src/app/prepare/page.tsx +++ b/src/app/prepare/page.tsx @@ -2,7 +2,7 @@ import useSteamStore from "@/store/steam" export default function Page() { - const { dir, updateDir, csDir, updateCsDir, currentUser } = useSteamStore() + const { dir, setDir, csDir, setCsDir, currentUser } = useSteamStore() return (
updateDir(e.target.value)} + onChange={(e) => setDir(e.target.value)} /> updateCsDir(e.target.value)} + onChange={(e) => setCsDir(e.target.value)} />

{currentUser().steamID64}

diff --git a/src/components/window/Nav.tsx b/src/components/window/Nav.tsx index d08d9fd..6fca092 100644 --- a/src/components/window/Nav.tsx +++ b/src/components/window/Nav.tsx @@ -2,7 +2,7 @@ import { RocketOne, Minus, Close, Square } from "@icon-park/react" import { /* relaunch, */ exit } from "@tauri-apps/plugin-process" import { getCurrentWindow } from "@tauri-apps/api/window" -import { platform } from "@tauri-apps/plugin-os" +// import { platform } from "@tauri-apps/plugin-os" import { useRouter } from "next/navigation" const Nav = () => { diff --git a/src/types/cfgx.ts b/src/types/cfgx.ts index 588e8a5..1063d2a 100644 --- a/src/types/cfgx.ts +++ b/src/types/cfgx.ts @@ -7,8 +7,8 @@ export interface XBase { info: string } -export interface Key extends XBase {} -export interface Alias extends XBase {} +export type Key = XBase +export type Alias = XBase export interface Value extends XBase { option: { name: string; value: string }[] }