diff --git a/src-tauri/src/steam/mod.rs b/src-tauri/src/steam/mod.rs index 0d76cc8..f7a9f81 100644 --- a/src-tauri/src/steam/mod.rs +++ b/src-tauri/src/steam/mod.rs @@ -13,7 +13,7 @@ pub fn launch_game( server: &str, ) -> Result<(), Box> { // 判断路径是否存在 - if !std::path::Path::new("/etc/hosts").exists() { + if !std::path::Path::new(steam_path).exists() { return Err(Box::new(std::io::Error::new( std::io::ErrorKind::NotFound, "Steam path not found", diff --git a/src/components/cstb/CommonDir.tsx b/src/components/cstb/CommonDir.tsx index e37f379..000372a 100644 --- a/src/components/cstb/CommonDir.tsx +++ b/src/components/cstb/CommonDir.tsx @@ -9,7 +9,7 @@ const RoundedButton = ({ children }: RoundedButtonProps) => { return ( diff --git a/src/components/cstb/FastLaunch.tsx b/src/components/cstb/FastLaunch.tsx index 21b1a40..c73a0e1 100644 --- a/src/components/cstb/FastLaunch.tsx +++ b/src/components/cstb/FastLaunch.tsx @@ -30,7 +30,7 @@ const FastLaunch = () => { server: "perfectworld", }) } - className="px-5 font-medium py-1.5 transition bg-red-200 dark:bg-red-900/60 rounded-full" + className="px-5 font-medium py-1.5 transition bg-red-200 dark:bg-red-900/60 rounded-full select-none" > 启动国服 @@ -43,7 +43,7 @@ const FastLaunch = () => { server: "worldwide", }) } - className="px-5 font-medium py-1.5 transition bg-orange-200 dark:bg-orange-900/60 rounded-full" + className="px-5 font-medium py-1.5 transition bg-orange-200 dark:bg-orange-900/60 rounded-full select-none" > 启动国际服 diff --git a/src/components/cstb/ForceQuit.tsx b/src/components/cstb/ForceQuit.tsx index 55cc4ae..ae3fade 100644 --- a/src/components/cstb/ForceQuit.tsx +++ b/src/components/cstb/ForceQuit.tsx @@ -15,14 +15,14 @@ const ForceQuit = () => { diff --git a/src/components/cstb/PowerPlan.tsx b/src/components/cstb/PowerPlan.tsx index edc20f6..6ce8334 100644 --- a/src/components/cstb/PowerPlan.tsx +++ b/src/components/cstb/PowerPlan.tsx @@ -22,21 +22,21 @@ const PowerPlan = () => { diff --git a/src/components/cstb/SmartTranser.tsx b/src/components/cstb/SmartTranser.tsx index 7db47d8..65b8acc 100644 --- a/src/components/cstb/SmartTranser.tsx +++ b/src/components/cstb/SmartTranser.tsx @@ -16,7 +16,7 @@ const SmartTransfer = () => { -
+

点击或拖拽

智能中转 .dem .cfg

diff --git a/src/components/window/Card.tsx b/src/components/window/Card.tsx index 2eaaaac..9f7c198 100644 --- a/src/components/window/Card.tsx +++ b/src/components/window/Card.tsx @@ -21,7 +21,7 @@ const Card = ({ children }: CardProps) => { const CardHeader = ({ children }: CardProps) => { return ( -
{children}
+
{children}
) }