mirror of
https://github.com/201206030/novel-front-web.git
synced 2025-07-09 22:56:39 +00: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