load quest info before start

This commit is contained in:
Annie Huang authored and wancat committed 2024-06-27 10:30:00 +08:00
1 parent 0b136a830a
commit ea2ba2c7a0
2 files changed
+10 -9

No files matched your search

+2 -1
View File
@@ -1,7 +1,7 @@
<script setup lang="ts">
import { useToast } from 'vue-toastification'
import { ref } from 'vue'
import { init } from '../../store/session'
import { init, setQuest } from '../../store/session'
import { LoadQuestError, LoadSessionError } from '../../utils/errors'
const props = defineProps({
@@ -13,6 +13,7 @@ const props = defineProps({
const toast = useToast()
const showCover = ref(true)
setQuest(props.questId)
const startSession = async () => {
showCover.value = false
try {