Skip to content

Commit b2eaae6

Browse files
committed
refactor: use useRouteParam
1 parent f421c48 commit b2eaae6

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/runtime/pages/admin/users/[uid]/UserIndex.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
<script setup lang="ts">
2-
import { useHead, useRoute } from '#imports'
2+
import { useHead, useRouteParam } from '#imports'
33
44
// PAGE INFO
55
useHead({
66
title: 'Admin - User Detail',
77
})
88
99
// ROUTE INFO
10-
const route = useRoute()
11-
const uid = route.params.uid as string
10+
const uid = useRouteParam('uid')
1211
</script>
1312

1413
<template>

0 commit comments

Comments
 (0)