forked from cuixueshe/earthworm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGame.vue
34 lines (29 loc) · 943 Bytes
/
Game.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<template>
<template v-if="currentGameMode === GameMode.Dictation">
<ModeDictationMode />
</template>
<template v-else-if="currentGameMode === GameMode.ChineseToEnglish">
<ModeChineseToEnglishMode />
</template>
<MainTips />
<MainSummary />
<MainShare />
<MainAuthRequired />
<!-- TODO: 暂时先不提示(有些用户正在移动端的场景下使用)-->
<!-- <MainMessageBox
v-model:show-modal="isMessageShow"
cancel-btn-text="确定"
:content="messageContent"
/> -->
</template>
<script setup lang="ts">
import { onMounted } from "vue";
import { courseTimer } from "~/composables/courses/courseTimer";
// import { useDeviceTip } from "~/composables/main/game";
import { GameMode, useGameMode } from "~/composables/user/gameMode";
// const { isMessageShow, messageContent } = useDeviceTip();
const { currentGameMode } = useGameMode();
onMounted(() => {
courseTimer.reset();
});
</script>