1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-02 23:19:57 +00:00
elk/pages/status/[status].vue

20 lines
327 B
Vue
Raw Normal View History

2022-11-13 16:05:32 +00:00
<script setup lang="ts">
definePageMeta({
middleware: async (to) => {
const params = to.params
const id = params.status as string
const status = await fetchStatus(id)
return {
path: getStatusPath(status),
state: {
status,
},
}
},
})
2022-11-13 16:05:32 +00:00
</script>
<template>
<div />
2022-11-13 16:05:32 +00:00
</template>