Explorar o código

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

xieyonghong %!s(int64=4) %!d(string=hai) anos
pai
achega
177505295d
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/components/Player/index.tsx

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

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