Skip to content

Commit

Permalink
fix: type error
Browse files Browse the repository at this point in the history
  • Loading branch information
F-loat committed Jul 16, 2024
1 parent 5f525fd commit d273596
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .vitepress/theme/components/Api/Request/Params/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
class="text-xs text-gray-500"
>[{{ item.items.type }}]</span
>
<span v-if="item.default" class="ml-2 text-xs text-gray-500"
>Defaults to {{ item.default }}</span
>
<span v-if="item.default" class="ml-2 text-xs text-gray-500">
Defaults to {{ item.default }}
</span>
</div>
<Input
:type="item.type"
Expand All @@ -72,7 +72,10 @@
</summary>
<div v-if="isComplex(item)" class="daisy-collapse-content -mb-6 px-3">
<api-params v-if="item.type === 'object'" :data="item.properties" />
<api-params v-else :data="item.items.properties" />
<api-params
v-else-if="item.type === 'array' && item.items.type === 'object'"
:data="item.items.properties"
/>
</div>
</details>
</div>
Expand Down

0 comments on commit d273596

Please sign in to comment.