Files
web/src/components/chart/Shared.vue
2025-04-23 12:55:49 -04:00

20 lines
485 B
Vue

<template>
<h2>Shared Order</h2>
<p>Loading the shared order into the app...</p>
</template>
<script setup>
import {loadShareUrl} from "@/share.js";
import router from "@/router/index.js";
import {socket} from "@/socket.js";
import {useRoute} from "vue-router";
const route = useRoute()
const code = route.params.code
loadShareUrl(code).then(()=> router.replace('/order')).catch((e)=> {console.error(e); router.replace('/order')})
</script>
<style scoped lang="scss">
</style>