feat: 添加“返回顶部”组件,提升用户导航体验
Some checks failed
Deploy docs for Site / deploy (20.x) (push) Has been cancelled
Some checks failed
Deploy docs for Site / deploy (20.x) (push) Has been cancelled
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user