Skip to content

Commit

Permalink
fix: the download is empty when downloads is undefined (#15)
Browse files Browse the repository at this point in the history
解决当下载量为undefined时,下载数不显示 
fixes #10

```release-note
修复应用详情下载量为 0 时的显示问题
```
  • Loading branch information
GodlessLiu authored Sep 11, 2023
1 parent 9def7b4 commit d37bcda
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions console/src/components/detail/DetailSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import type { ApplicationDetail } from "@/types";
import { relativeTimeTo } from "@/utils/date";
import TablerGraph from "~icons/tabler/graph";
import TablerDownload from "~icons/tabler/download";
withDefaults(
defineProps<{
app?: ApplicationDetail;
Expand Down Expand Up @@ -120,7 +119,7 @@ withDefaults(
<span class="as-text-xs as-text-gray-500">下载</span>
</div>
<span class="as-font-semibold as-tabular-nums">
{{ app.downloads }}
{{ app.downloads || 0 }}
</span>
</div>
</div>
Expand Down

0 comments on commit d37bcda

Please sign in to comment.