Showing
1 changed file
with
5 additions
and
5 deletions
| 1 | /* | 1 | /* |
| 2 | * @Date: 2025-03-20 20:36:36 | 2 | * @Date: 2025-03-20 20:36:36 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2025-03-25 15:17:18 | 4 | + * @LastEditTime: 2025-06-11 22:57:00 |
| 5 | * @FilePath: /mlaj/src/router/index.js | 5 | * @FilePath: /mlaj/src/router/index.js |
| 6 | * @Description: 路由实例创建和导出 | 6 | * @Description: 路由实例创建和导出 |
| 7 | */ | 7 | */ |
| ... | @@ -12,10 +12,10 @@ import { checkWxAuth, checkAuth } from './guards' | ... | @@ -12,10 +12,10 @@ import { checkWxAuth, checkAuth } from './guards' |
| 12 | const router = createRouter({ | 12 | const router = createRouter({ |
| 13 | history: createWebHashHistory(import.meta.env.VITE_BASE || '/'), | 13 | history: createWebHashHistory(import.meta.env.VITE_BASE || '/'), |
| 14 | routes, | 14 | routes, |
| 15 | - scrollBehavior(to, from, savedPosition) { | 15 | + // scrollBehavior(to, from, savedPosition) { |
| 16 | - // 每次路由切换后,页面滚动到顶部 | 16 | + // // 每次路由切换后,页面滚动到顶部 |
| 17 | - return savedPosition || { top: 0, left: 0 } | 17 | + // return savedPosition || { top: 0, left: 0 } |
| 18 | - }, | 18 | + // }, |
| 19 | }) | 19 | }) |
| 20 | 20 | ||
| 21 | // 导航守卫 | 21 | // 导航守卫 | ... | ... |
-
Please register or login to post a comment