Skip to content

Commit

Permalink
фикс загрузки страницы
Browse files Browse the repository at this point in the history
  • Loading branch information
JoCat committed Feb 23, 2024
1 parent 2acab3a commit a31da23
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pages/download.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
</p>
<span class="danger">Они не пригодны для работы в продакшене!!!</span>
</div>
<p class="text-center danger" v-if="!versionsData">
<p class="text-center" v-if="pending">Загрузка...</p>
<p class="text-center danger" v-else-if="!versionsData">
Ошибка получения списка версий
</p>
<div class="list" v-else>
Expand Down Expand Up @@ -61,9 +62,9 @@ useSeoMeta({
title: "Скачать лаунчер",
});
const { data: versionsData } = await useFetch<VersionsData>(
const { data: versionsData, pending } = await useFetch<VersionsData>(
"https://api.aurora-launcher.ru/versions",
{ server: false }
{ server: false, lazy: true }
);
interface VersionsData {
Expand Down

0 comments on commit a31da23

Please sign in to comment.