mirror of
https://github.com/LHY0125/Gobang-Game.git
synced 2026-06-29 08:55:53 +08:00
fix: 移除 GameMode 的 camelCase 重命名,修复前端传 Local/VsAi 无法匹配
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -99,7 +99,6 @@ pub struct GameResult {
|
|||||||
|
|
||||||
/// 游戏模式 (Tauri IPC 兼容 — 纯标签, 不含字段)
|
/// 游戏模式 (Tauri IPC 兼容 — 纯标签, 不含字段)
|
||||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||||
#[serde(rename_all = "camelCase")]
|
|
||||||
pub enum GameMode {
|
pub enum GameMode {
|
||||||
Local,
|
Local,
|
||||||
VsAi,
|
VsAi,
|
||||||
|
|||||||
Reference in New Issue
Block a user