logigate/app/pages/p/[id].vue

11 lines
247 B
Vue

<script setup lang="ts">
// A share link: /p/<id> opens that project (or your own copy of it).
const route = useRoute()
const ed = useEditor()
onMounted(() => ed.openLink(String(route.params.id)))
</script>
<template>
<EditorApp />
</template>