mirror of
https://gitee.com/novel_dev_team/novel-front-web
synced 2026-07-20 17:54:10 +08:00
feat: 新增小说同类推荐
This commit is contained in:
@@ -35,4 +35,9 @@ const router = createRouter({
|
||||
]
|
||||
})
|
||||
|
||||
// 解决 vue 中路由跳转时,总是从新页面中间开始显示
|
||||
router.afterEach((to,from,next) => {
|
||||
window.scrollTo(0,0)
|
||||
})
|
||||
|
||||
export default router
|
||||
Reference in New Issue
Block a user