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 @@ + + + + +