From ff7343e23cc8f539ff4fd7013dbd47701ff29703 Mon Sep 17 00:00:00 2001
From: fanshuai <1419026159@qq.com>
Date: Thu, 3 Apr 2025 16:10:19 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=98=E7=BD=91=E9=A1=B5=E9=9D=A2=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9=E5=AE=8C=E6=88=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/App.vue | 5 ++---
src/components/footView.vue | 3 ---
src/router/index.js | 7 +++++++
3 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/src/App.vue b/src/App.vue
index 65662c0..a1d563f 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,11 +1,10 @@
-
+
diff --git a/src/components/footView.vue b/src/components/footView.vue
index 22fcb34..a513ed0 100644
--- a/src/components/footView.vue
+++ b/src/components/footView.vue
@@ -63,10 +63,7 @@ export default {
}
-.logo {
- position: absolute;
-}
.wb {
letter-spacing: 1.5px;
diff --git a/src/router/index.js b/src/router/index.js
index 896f75a..d368dd8 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -12,6 +12,13 @@ const router = createRouter({
},
],
+ scrollBehavior(savedPosition) {
+
+ if (performance.navigation.type === 1) {
+ return { x: 0, y: 0 }
+ }
+ return savedPosition || { x: 0, y: 0 }
+ }
})
export default router