feat: 新增小说同类推荐

This commit is contained in:
xiongxiaoyang
2022-05-15 20:49:07 +08:00
parent 260c6827c0
commit 04ff469b3a
5 changed files with 139 additions and 161 deletions

View File

@ -35,4 +35,9 @@ const router = createRouter({
]
})
// 解决 vue 中路由跳转时,总是从新页面中间开始显示
router.afterEach((to,from,next) => {
window.scrollTo(0,0)
})
export default router