feat(game): update websocket URL configuration and improve game room logic

- Change VITE_GAME_WS_URL from /api/v1/ws to /ws in .env.development
- Update proxy configuration in vite.config.ts to match new websocket path
- Refactor leave room functionality to properly disconnect websocket
and destroy room state
- Add e2e testing script to package.json
```
This commit is contained in:
2026-03-24 14:38:47 +08:00
parent 1b15748d0d
commit 84ce67b9be
7 changed files with 157 additions and 70 deletions

View File

@@ -7,7 +7,8 @@
"scripts": {
"dev": "vite",
"build": "vue-tsc -b && vite build",
"preview": "vite preview"
"preview": "vite preview",
"test:e2e": "playwright test"
},
"dependencies": {
"vue": "^3.5.25",