修复只有一个窗口时无法显示多媒体控制的BUG
This commit is contained in:
parent
1b31a87a91
commit
63b5e0b00a
|
@ -369,7 +369,6 @@ export default defineComponent({
|
||||||
}
|
}
|
||||||
focused.value = newValue.focus;
|
focused.value = newValue.focus;
|
||||||
selected.value = old;
|
selected.value = old;
|
||||||
$store.commit("setSelectedWindow", props.window.uuid);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@ -402,6 +401,7 @@ export default defineComponent({
|
||||||
selected.value = true;
|
selected.value = true;
|
||||||
focused.value = true;
|
focused.value = true;
|
||||||
emit("window_fouse_in", props.window.window_id);
|
emit("window_fouse_in", props.window.window_id);
|
||||||
|
$store.commit("setSelectedWindow", props.window.uuid);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onMouseDown(evt: MouseEvent) {
|
onMouseDown(evt: MouseEvent) {
|
||||||
|
|
|
@ -113,6 +113,9 @@ export default defineComponent({
|
||||||
signal_source.window_type == "EwindowType::Multimedia" ||
|
signal_source.window_type == "EwindowType::Multimedia" ||
|
||||||
signal_source.window_type == "EwindowType::RTSP";
|
signal_source.window_type == "EwindowType::RTSP";
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
selected_window.value = null;
|
||||||
|
is_multimedia_window.value = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
@ -459,6 +459,7 @@ export default defineComponent({
|
||||||
|
|
||||||
onWallGridsClick(e: MouseEvent) {
|
onWallGridsClick(e: MouseEvent) {
|
||||||
EventBus.getInstance().emit(EventNamesDefine.UnSelectAllWindows);
|
EventBus.getInstance().emit(EventNamesDefine.UnSelectAllWindows);
|
||||||
|
$store.commit("setSelectedWindow", "");
|
||||||
},
|
},
|
||||||
resetGeometryOffset(
|
resetGeometryOffset(
|
||||||
window: any,
|
window: any,
|
||||||
|
|
Loading…
Reference in New Issue