-
Notifications
You must be signed in to change notification settings - Fork 724
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ec03c67
commit 8b17249
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<template> | ||
<div class="fixed right-5 top-24 w-28 h-40 bg-pink-500"> | ||
<div> | ||
<NuxtLink href="/courses"> 更多课程 </NuxtLink> | ||
</div> | ||
<div>{{ coursesStore.currentCourse.title }}</div> | ||
<div> | ||
<button @click="handleDoAgain">重新开始</button> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { useCoursesStore } from "~/store/courses"; | ||
import { useMode } from "./game"; | ||
const coursesStore = useCoursesStore(); | ||
const { showQuestion } = useMode(); | ||
function handleDoAgain() { | ||
coursesStore.doAgain(); | ||
showQuestion() | ||
} | ||
</script> | ||
|
||
<style scoped></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters