Explorar el Código

切换后返回顶部

natasha hace 3 meses
padre
commit
7972ae294b
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/views/courseView.vue

+ 1 - 0
src/views/courseView.vue

@@ -438,6 +438,7 @@ export default {
       }
       if (_this.isPhone) {
         _this.showMenu = false;
+        document.getElementsByClassName("content-tree-phone")[0].scrollTop = 0;
       }
     },
     // 点击全屏展示 隐藏tree