Tasks und Vertragstyp fix #17
This commit is contained in:
22
frontend/pages/tasks/[mode]/[[id]].vue
Normal file
22
frontend/pages/tasks/[mode]/[[id]].vue
Normal file
@@ -0,0 +1,22 @@
|
||||
<script setup>
|
||||
const route = useRoute()
|
||||
|
||||
const mode = typeof route.params.mode === "string" ? route.params.mode : ""
|
||||
const id = typeof route.params.id === "string" ? route.params.id : ""
|
||||
|
||||
const query = { ...route.query }
|
||||
|
||||
if (["create", "show", "edit"].includes(mode)) {
|
||||
query.mode = mode
|
||||
}
|
||||
|
||||
if (id) {
|
||||
query.id = id
|
||||
}
|
||||
|
||||
await navigateTo({ path: "/tasks", query }, { replace: true })
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UProgress animation="carousel" class="p-5 mt-10" />
|
||||
</template>
|
||||
Reference in New Issue
Block a user