Skip to content

Commit 7b6ba26

Browse files
committed
fix: Add scroll top effect for home page return
1 parent 26f2cf9 commit 7b6ba26

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/client/modules/home/home.view.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export default class Home extends Vue {
7979
8080
mounted() {
8181
this.checkIfMobile();
82+
window.scrollTo(0, 0);
8283
window.addEventListener('resize', this.handleResize);
8384
8485
// 客户端平台检测

0 commit comments

Comments
 (0)