Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #275 from SELab-2/web/hotfix/loader
Browse files Browse the repository at this point in the history
Frontend: Loader
  • Loading branch information
matsvbelle authored Apr 20, 2023
2 parents 961b543 + 527e07b commit b892ac5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion web/src/layouts/MainLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,18 @@

<v-spacer />
</v-app-bar>
<router-view :key="route.fullPath" />
<Suspense :key="route.fullPath">
<template #fallback>
<Loader />
</template>
<router-view />
</Suspense>
</v-main>
</v-app>
</template>

<script lang="ts" setup>
import Loader from "@/components/popups/Loader.vue";
import Avatar from "@/components/Avatar.vue";
import { Ref, ref } from "vue";
import { useRoute, useRouter } from "vue-router";
Expand Down

0 comments on commit b892ac5

Please sign in to comment.