scorpio 2 年之前
父节点
当前提交
8f22c699d1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/home/component/pro_left.vue

+ 1 - 1
src/views/home/component/pro_left.vue

@@ -222,7 +222,7 @@ export default {
           return
         }
         this.active = index
-        if (e.target.scrollTop === 0) {
+        if (e.target && e.target.scrollTop === 0) {
           this.active = 0
         }
       })