Skip to content

Commit

Permalink
Merge pull request #77 from our-mini-games/feat-Chinese-chess
Browse files Browse the repository at this point in the history
fix(piece): eslint
  • Loading branch information
humandetail committed Dec 12, 2023
2 parents 5099cba + 742a9d0 commit 7c2f765
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/Chinese-chess/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
<div class="chinese-chess">
<mode-selector v-if="currentMode === null" />

<offline-game v-else-if="currentMode === GameMode.OFFLINE" />

<component
v-else
:is="comp"
Expand All @@ -13,7 +15,6 @@
@game:ready="handleGameReady"
@game:change="handleGameChange"
/>
<!-- <GameMain /> -->
</div>
</template>

Expand All @@ -36,7 +37,7 @@ const currentMode = ref<GameMode | null>(null)
const comp = computed(() => {
return currentMode.value === GameMode.ONLINE
? currentRoom.value ? GameMain : Gamelobby
: OfflineGame
: ''
})
onMounted(() => {
Expand Down

0 comments on commit 7c2f765

Please sign in to comment.