Browse Source

feat(ScreenPlayer): 添加对标签的忽略检查

xieyonghong 4 years atrás
parent
commit
177505295d
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/components/Player/index.tsx

+ 3 - 1
src/components/Player/index.tsx

@@ -92,8 +92,10 @@ export default (props: PlayerProps) => {
   };
   };
 
 
   return (
   return (
+    // @ts-ignore: Unreachable code error
     <live-player
     <live-player
-      ref={(r) => {
+      ref={(r: any) => {
+        // @ts-ignore
         player.current = r;
         player.current = r;
         EventInit();
         EventInit();
       }}
       }}