feat:增加返回顶部组件

This commit is contained in:
2026-06-08 16:31:20 +08:00
parent 21414245d9
commit 597159298f
3 changed files with 181 additions and 6 deletions

View File

@@ -12,6 +12,10 @@
<template #doc-before>
<ArticleMetadat />
</template>
<template #doc-footer-before>
<Backtotop />
</template>
</DefaultTheme.Layout>
</div>
</Transition>
@@ -21,6 +25,7 @@
<script setup lang="ts">
import DefaultTheme from 'vitepress/theme'
import ArticleMetadat from './ArticleMetadata.vue';
import Backtotop from './Backtotop.vue';
import Loading from './Loading.vue';
import { ref, onMounted } from 'vue'