refactor(components): change ID types from string to number and update related components

- Update installation and unit detail components to use number type for IDs
- Modify route parameter handling to pass numbers instead of strings
- Add new unit position entry detail component with proper type handling
This commit is contained in:
Khafid Prayoga
2025-10-30 14:10:40 +07:00
parent 343d1d21cb
commit bf441ff714
5 changed files with 198 additions and 6 deletions

No files matched your search

@@ -33,7 +33,7 @@ const canRead = true
<template>
<template v-if="canRead">
<ContentInstallationDetail :installation-id="String(route.params.id)" />
<ContentInstallationDetail :installation-id="Number(route.params.id)" />
</template>
<Error
v-else
@@ -33,7 +33,7 @@ const canRead = true
<template>
<template v-if="canRead">
<ContentUnitDetail :unit-id="String(route.params.id)" />
<ContentUnitDetail :unit-id="Number(route.params.id)" />
</template>
<Error
v-else