e6cba75f9ba66aad0e91af8a6e2eb537ff33cb74
- 在actions.ts中添加is_ready字段支持多种就绪状态标识 - 在ChengduGamePage.vue中更新就绪状态判断逻辑,优先使用is_ready字段 - 修改WebSocket消息类型从SET_READY到PLAYER_READY以保持一致性 - 更新就绪载荷中的用户ID字段从user_id到player_id - 创建新的gameStore.ts文件实现完整的麻将游戏状态管理 - 添加房间玩家更新、托管设置、玩家回合等核心游戏逻辑处理 - 实现摸牌、出牌、操作窗口等游戏状态变更功能 - 统一处理多种数据格式的兼容性问题
Mahjong Web
This project uses Vue 3, TypeScript, Vite, and pnpm for package management.
Setup
Install dependencies:
pnpm install
Start the development server:
pnpm dev
Build for production:
pnpm build
Preview the production build:
pnpm preview
测试账号:A,B,C,D 测试密码:123456
Description
Languages
Vue
70.1%
TypeScript
16.2%
CSS
13.4%
HTML
0.3%