|
|
@@ -4,7 +4,7 @@ import { Card } from 'antd';
|
|
|
import LeftTree from './tree';
|
|
|
import { ScreenPlayer } from '@/components';
|
|
|
import { ptzStart, ptzStop, ptzTool } from './service';
|
|
|
-import { useRef, useState } from 'react';
|
|
|
+import { useEffect, useRef, useState } from 'react';
|
|
|
import './index.less';
|
|
|
import { useDomFullHeight } from '@/hooks';
|
|
|
|
|
|
@@ -24,6 +24,13 @@ const SplitScreen = () => {
|
|
|
player.current?.replaceVideo(dId, cId, getMediaUrl(dId, cId));
|
|
|
};
|
|
|
|
|
|
+ useEffect(() => {
|
|
|
+ document.body.style.overflowY = 'scroll';
|
|
|
+ return () => {
|
|
|
+ document.body.style.overflowY = '';
|
|
|
+ };
|
|
|
+ }, []);
|
|
|
+
|
|
|
return (
|
|
|
<PageContainer>
|
|
|
<Card style={{ minHeight }} className="splitScreen">
|