Commit 172c1d85 authored by 喻天's avatar 喻天

fix: 宽高监听

parent 4fc61242
/*
* @Author: 634665781 634665781@qq.com
* @Date: 2023-04-11 13:40:18
* @LastEditors: 634665781 634665781@qq.com
* @LastEditTime: 2023-05-30 14:38:18
* @LastEditors: yutian 249303761@qq.com
* @LastEditTime: 2023-08-31 11:34:30
* @FilePath: \wisdom-components\packages\base-components\VmsVideo\src\index.jsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -126,7 +126,7 @@ const Video = (props, ref) => {
// 组件销毁时移除监听事件
window.removeEventListener('resize', resizeUpdate);
};
}, []);
}, [width, height]);
const CommonPath =
VideoInfo.gateway || window?.globalConfig?.hasGateWay ? 'PandaCore/GateWay/Video/' : ''; // 配置了gateway或者pc端web配置中有gateway
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment