short share urls

This commit is contained in:
tim
2025-04-23 12:55:49 -04:00
parent 6f7388bb10
commit 441a514acc
8 changed files with 53 additions and 52 deletions

View File

@@ -1,14 +1,19 @@
<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";
loadShareUrl()
router.replace('/order')
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>
</style>