forked from jchomaz/Vulture
Patch des soucis de passage d'une page à une autre
This commit is contained in:
@@ -1,19 +1,28 @@
|
|||||||
<template>
|
<template>
|
||||||
<v-app>
|
<v-app>
|
||||||
<BrainBlastBar v-if="$route.name != 'Game Display (Projection)'" />
|
<VultureBar v-if="showVultureBar" />
|
||||||
<GameStatus v-if="$route.name === 'Game Control (Présentateur)'">
|
<GameStatus v-if="showGameStatus" />
|
||||||
</GameStatus>
|
|
||||||
<v-main>
|
<v-main>
|
||||||
<RouterView />
|
<RouterView :key="$route.fullPath" />
|
||||||
</v-main> <!-- <v-footer class="footer" :elevation=12 border><v-row justify="center">© 2024 - ASCO section Fablab</v-row></v-footer> -->
|
</v-main> <!-- <v-footer class="footer" :elevation=12 border><v-row justify="center">© 2024 - ASCO section Fablab</v-row></v-footer> -->
|
||||||
</v-app>
|
</v-app>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
import { computed } from 'vue';
|
||||||
import BrainBlastBar from '@/components/BrainBlastBar.vue'
|
import { useRoute } from 'vue-router';
|
||||||
|
import VultureBar from '@/components/VultureBar.vue'
|
||||||
import GameStatus from '@/components/GameStatus.vue'
|
import GameStatus from '@/components/GameStatus.vue'
|
||||||
|
|
||||||
|
const route = useRoute();
|
||||||
|
|
||||||
|
const showVultureBar = computed(() => {
|
||||||
|
return route.name !== 'Game Display (Projection)' && route.name !== 'Score Display (Projection)';
|
||||||
|
});
|
||||||
|
|
||||||
|
const showGameStatus = computed(() => {
|
||||||
|
return route.name === 'Game Control (Présentateur)';
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|||||||
Reference in New Issue
Block a user