shaogen1995 3 năm trước cách đây
mục cha
commit
fa071035f1
1 tập tin đã thay đổi với 0 bổ sung2 xóa
  1. 0 2
      webM/src/router/index.js

+ 0 - 2
webM/src/router/index.js

@@ -301,10 +301,8 @@ const router = new VueRouter({
 // 导航守卫,回到页面顶部
 router.beforeEach((to, from, next) => {
   setTimeout(() => {
-    if (!to.meta.sroolBack) {
       let dom = document.querySelector('.Layout')
       dom.scrollTop = 0
-    }
   }, 100);
   next()
 })