修复替换信号源后窗口句柄没刷新的BUG

This commit is contained in:
fangxiang 2022-09-28 15:48:00 +08:00
parent 67b41ece63
commit 6aed12baa4
5 changed files with 6 additions and 2 deletions

View File

@ -687,11 +687,9 @@ export default defineComponent({
const parseFilter = (filter?: string) => { const parseFilter = (filter?: string) => {
filters.value = []; filters.value = [];
console.log(filter);
if (filter == null || typeof filter == "undefined") { if (filter == null || typeof filter == "undefined") {
return; return;
} }
console.log(filter);
if (filter) { if (filter) {
for (const item of filter.split(";")) { for (const item of filter.split(";")) {

View File

@ -338,6 +338,8 @@ export default defineComponent({
} else { } else {
selected_window.value = null; selected_window.value = null;
is_multimedia_window.value = false; is_multimedia_window.value = false;
can_pause_window.value = false;
can_next_prev_window.value = false;
} }
} }
); );

View File

@ -307,6 +307,7 @@ export default defineComponent({
window_id: temp.window_id, window_id: temp.window_id,
}); });
} else { } else {
$store.commit("setSelectedWindow", "");
$store.commit("removeWindow", { $store.commit("removeWindow", {
window_id: temp.window_id, window_id: temp.window_id,
}); });

View File

@ -177,6 +177,8 @@ export default defineComponent({
} else { } else {
selected_window.value = null; selected_window.value = null;
is_multimedia_window.value = false; is_multimedia_window.value = false;
can_pause_window.value = false;
can_next_prev_window.value = false;
} }
} }
); );

View File

@ -492,6 +492,7 @@ export default defineComponent({
window_id: temp.window_id, window_id: temp.window_id,
}); });
} else { } else {
$store.commit("setSelectedWindow", "");
$store.commit("removeWindow", { $store.commit("removeWindow", {
window_id: temp.window_id, window_id: temp.window_id,
}); });