feat: use dynamic route to select quest (no error handling yet)

This commit is contained in:
wancat authored and Lin, Hung-Shin committed 2023-11-14 10:44:52 +08:00
1 parent cce6127d51
commit f973982ec4
3 files changed
+13 -19

No files matched your search

+8 -1
View File
@@ -14,8 +14,15 @@ const completed = computed(() => {
return sessionStore.session.status === 'finished'
})
const props = defineProps({
questId: {
type: String,
required: true,
},
})
onMounted(async () => {
await init('helloworld')
await init(props.questId)
})
</script>