22 lines
435 B
Vue
22 lines
435 B
Vue
<script setup>
|
|
import {onMounted} from "vue";
|
|
import {useFlightPlansStore} from "stores/FlightPlans";
|
|
import {useRouter} from "vue-router";
|
|
|
|
const $router = useRouter();
|
|
|
|
onMounted(async () => {
|
|
await useFlightPlansStore().create({
|
|
name: "",
|
|
isPublic: false,
|
|
markers: []
|
|
}).then(fp => {
|
|
return $router.replace({name: "editFlightPlan", params: {id: fp.id}});
|
|
})
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<q-spinner/>
|
|
</template>
|