From 5967652081d92180adbc78da809c26cff5cf730a Mon Sep 17 00:00:00 2001 From: 杨磊 <505174330@qq.com> Date: 星期日, 24 八月 2025 14:18:10 +0800 Subject: [PATCH] 搜索页面 --- src/router/index.js | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 46d21a3..0a1b4df 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -27,16 +27,33 @@ path: '/bookdetail', name: 'bookdetail', component: bookdetail, + meta: { + scrollToTop: true, + }, + }, + { + path: '/search', + name: 'search', + meta: { + name: '鎼滅储', + }, + component: () => import('@/views/home/search.vue'), }, { path: '/bookStore', name: 'bookStore', component: bookStore, + meta: { + scrollToTop: true, + }, }, { path: '/textBookApply', name: 'textBookApply', component: () => import('@/views/bookStore/textBookApply.vue'), + meta: { + scrollToTop: true, + }, }, //涓汉涓績 { @@ -265,6 +282,9 @@ ], }, ], + scrollBehavior(to, from, savedPosition) { + return { x: 0, y: 0 } + }, }) export default router -- Gitblit v1.9.1