11 lines
261 B
Vue
11 lines
261 B
Vue
|
|
<script setup lang="ts">
|
||
|
|
// A puzzle link: /puzzle/<id> adds that puzzle to the open project and opens it.
|
||
|
|
const route = useRoute()
|
||
|
|
const ed = useEditor()
|
||
|
|
onMounted(() => ed.openPuzzle(String(route.params.id)))
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<template>
|
||
|
|
<EditorApp />
|
||
|
|
</template>
|