feat: 添加“返回顶部”组件,提升用户导航体验
Some checks failed
Deploy docs for Site / deploy (20.x) (push) Has been cancelled

This commit is contained in:
joyzhao
2026-01-09 09:55:52 +08:00
parent 99c41d537f
commit 0e6f611455
2 changed files with 48 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
---
import BackToTop from "@/components/ui/back-to-top";
import { useTranslations } from "@/i18n/utils";
import type { Lang } from "@/types/i18n";
import { defaultLang } from "@/i18n/ui";
@@ -44,6 +45,7 @@ const t = useTranslations(lang);
>
</div>
<slot />
<BackToTop client:load />
</body>
</html>