소스 검색

Update index.tsx

lex 1 년 전
부모
커밋
2b27ca4363
1개의 변경된 파일0개의 추가작업 그리고 4개의 파일을 삭제
  1. 0 4
      src/components/o-sticky/index.tsx

+ 0 - 4
src/components/o-sticky/index.tsx

@@ -38,10 +38,6 @@ export default defineComponent({
     }
   },
   mounted() {
-    // 增加判断如果不支持当前依赖再设置即可
-    if (window.ResizeObserver === undefined) {
-      window.ResizeObserver = ResizeObserver
-    }
     if (this.position === 'top') {
       this.divStyle.top = this.offsetTop || '0px'
     } else {