From 84e263d4eb21a0187390cdd746fe51906a9770de Mon Sep 17 00:00:00 2001 From: jingrow Date: Sun, 2 Nov 2025 02:57:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E9=A1=B5=E9=9D=A2=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0BackToTop=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../frontend/src/app/layouts/AppLayout.vue | 4 + .../frontend/src/app/layouts/BackToTop.vue | 206 ++++++++++++++++++ 2 files changed, 210 insertions(+) create mode 100644 apps/jingrow/frontend/src/app/layouts/BackToTop.vue diff --git a/apps/jingrow/frontend/src/app/layouts/AppLayout.vue b/apps/jingrow/frontend/src/app/layouts/AppLayout.vue index 98f22e3..b898f25 100644 --- a/apps/jingrow/frontend/src/app/layouts/AppLayout.vue +++ b/apps/jingrow/frontend/src/app/layouts/AppLayout.vue @@ -37,6 +37,9 @@ class="mobile-overlay" @click="toggleSidebar" > + + + @@ -45,6 +48,7 @@ import { ref, watch, onMounted, onUnmounted } from 'vue' import { NLayout, NLayoutSider, NLayoutHeader, NLayoutContent } from 'naive-ui' import AppSidebar from './AppSidebar.vue' import AppHeader from './AppHeader.vue' +import BackToTop from './BackToTop.vue' const SIDEBAR_COLLAPSE_KEY = 'app.sidebar.collapsed' const collapsed = ref(localStorage.getItem(SIDEBAR_COLLAPSE_KEY) === 'true') diff --git a/apps/jingrow/frontend/src/app/layouts/BackToTop.vue b/apps/jingrow/frontend/src/app/layouts/BackToTop.vue new file mode 100644 index 0000000..a5e257c --- /dev/null +++ b/apps/jingrow/frontend/src/app/layouts/BackToTop.vue @@ -0,0 +1,206 @@ + + + + +