update: remove footer visit counter
This commit is contained in:
+1
-9
@@ -1,16 +1,8 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { ref, KeepAlive } from 'vue';
|
|
||||||
import { RouterView } from 'vue-router';
|
import { RouterView } from 'vue-router';
|
||||||
|
|
||||||
import router from './router';
|
|
||||||
|
|
||||||
import Navbar from './components/Navbar.vue';
|
import Navbar from './components/Navbar.vue';
|
||||||
import Footer from './components/Footer.vue';
|
import Footer from './components/Footer.vue';
|
||||||
|
|
||||||
const visitCount = ref(1);
|
|
||||||
router.afterEach(() => {
|
|
||||||
visitCount.value++;
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@@ -23,5 +15,5 @@ router.afterEach(() => {
|
|||||||
<component :is="Component" v-if="!$route.meta.keepAlive" />
|
<component :is="Component" v-if="!$route.meta.keepAlive" />
|
||||||
</RouterView>
|
</RouterView>
|
||||||
</div>
|
</div>
|
||||||
<Footer :visitCount="visitCount" />
|
<Footer />
|
||||||
</template>
|
</template>
|
||||||
@@ -1,11 +1,8 @@
|
|||||||
<script setup>
|
|
||||||
defineProps(['visitCount']);
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="ts-content is-center-aligned is-vertically-padded">
|
<div class="ts-content is-center-aligned is-vertically-padded">
|
||||||
<div class="ts-container">
|
<div class="ts-container">
|
||||||
<div class="ts-text is-secondary">Total Visitor: {{ visitCount }}</div>
|
<div class="ts-text is-secondary">Website for Practium of Attacking and Defense of Network Security, NTU</div>
|
||||||
|
<div class="ts-text is-secondary">© 2025 · t510599</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
Reference in New Issue
Block a user