squash debug commits
This commit is contained in:
parent
793432fdd9
commit
1cf09ec4f0
|
|
@ -3,7 +3,6 @@ import { useBotStore } from '@/stores/bot';
|
|||
import { useGameStore } from '@/stores/game';
|
||||
import { usePlayerStore } from '@/stores/player';
|
||||
import { useWebsocketStore } from '@/stores/websocket';
|
||||
import { onMounted, onBeforeMount } from 'vue'
|
||||
import { useRoute, useRouter } from 'vue-router'
|
||||
|
||||
const player = usePlayerStore()
|
||||
|
|
@ -12,8 +11,8 @@ const bot = useBotStore()
|
|||
const route = useRoute()
|
||||
const router = useRouter()
|
||||
const websocket = useWebsocketStore()
|
||||
console.log(route.params.gameId)
|
||||
if (game.owner == player.id || game.opponent.id == player.id) {
|
||||
|
||||
if (game.owner == player.id || game.player.id == player.id) {
|
||||
router.replace({ name: 'lobby', params: { gameId: game.id } })
|
||||
} else {
|
||||
game.$reset()
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ if (game.createdAt == null) {
|
|||
router.replace({name:'index'})
|
||||
}
|
||||
|
||||
|
||||
const board = new boardConstructor(game.boardSize, game.getAvailableItems())
|
||||
//Board cells in browser MB not needed
|
||||
const playerView = ref()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user