Skip to content

Commit 3bb2cd3

Browse files
committed
refactor: 增加切换路由自动隐藏窗体逻辑
1 parent a95a3af commit 3bb2cd3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • src/components/BootstrapBlazor.HikVision/wwwroot

src/components/BootstrapBlazor.HikVision/wwwroot/hikvision.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ export async function init(id) {
2626
if (checkVisibility(el)) {
2727
WebVideoCtrl.I_Resize(el.offsetWidth, el.offsetHeight);
2828
}
29+
else {
30+
WebVideoCtrl.I_HidPlugin();
31+
}
2932
});
3033
observer.observe(el);
3134
vision.observer = observer;

0 commit comments

Comments
 (0)