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:
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
|
||||
|
||||
Reference in New Issue
Block a user