Skip to content

Commit

Permalink
reafctor: delagete following uping page for flist to be with create f…
Browse files Browse the repository at this point in the history
…list page

Co-authored-by: Salma Elsoly <[email protected]>
  • Loading branch information
Nabil-Salah and SalmaElsoly committed Aug 28, 2024
1 parent d14001c commit 4bfe6c7
Show file tree
Hide file tree
Showing 8 changed files with 276 additions and 219 deletions.
20 changes: 11 additions & 9 deletions frontend/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@

<template>
<v-app>
<Navbar v-if="path!=`login`"></Navbar>
<router-view />
<Footer v-if="path!=`login`"></Footer>
<Navbar v-if="path !== `login`"></Navbar>
<v-main class="mn-height" >
<router-view v-slot="{ Component, route }">
<div :key="route.path">
<component :is="Component" />
</div>
</router-view>
</v-main>
<Footer v-if="path !== `login`"></Footer>
</v-app>

</template>

<script setup lang="ts">
import Footer from './components/Footer.vue';
import Navbar from './components/Navbar.vue';
import { useRouter } from "vue-router";
const path: string | undefined = useRouter().currentRoute?.value.path
console.log(path)
import { useRoute } from 'vue-router';
var path = useRoute().name?.toString()
</script>
<style scoped>
.logo {
Expand Down
Loading

0 comments on commit 4bfe6c7

Please sign in to comment.