update: remove footer visit counter
This commit is contained in:
+1
-9
@@ -1,16 +1,8 @@
|
||||
<script setup>
|
||||
import { ref, KeepAlive } from 'vue';
|
||||
import { RouterView } from 'vue-router';
|
||||
|
||||
import router from './router';
|
||||
|
||||
import Navbar from './components/Navbar.vue';
|
||||
import Footer from './components/Footer.vue';
|
||||
|
||||
const visitCount = ref(1);
|
||||
router.afterEach(() => {
|
||||
visitCount.value++;
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -23,5 +15,5 @@ router.afterEach(() => {
|
||||
<component :is="Component" v-if="!$route.meta.keepAlive" />
|
||||
</RouterView>
|
||||
</div>
|
||||
<Footer :visitCount="visitCount" />
|
||||
<Footer />
|
||||
</template>
|
||||
@@ -1,11 +1,8 @@
|
||||
<script setup>
|
||||
defineProps(['visitCount']);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="ts-content is-center-aligned is-vertically-padded">
|
||||
<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>
|
||||
</template>
|
||||
Reference in New Issue
Block a user