pad信号源列表过滤掉隐藏信号源。添加清屏协议处理
This commit is contained in:
parent
ea4c0d44ef
commit
9b68fa58a5
|
@ -267,7 +267,10 @@ export default defineComponent({
|
|||
const $t = useI18n();
|
||||
|
||||
const signal_sources = computed({
|
||||
get: () => $store.state.signal_sources,
|
||||
get: () =>
|
||||
$store.state.signal_sources.filter(
|
||||
(element) => element && !element.local_file_flag
|
||||
),
|
||||
set: (val) => null,
|
||||
});
|
||||
|
||||
|
|
|
@ -277,9 +277,15 @@ export default defineComponent({
|
|||
{
|
||||
const temp = JSON.parse(notify.data);
|
||||
if (temp && temp.window_id) {
|
||||
$store.commit("removeWindow", {
|
||||
window_id: temp.window_id,
|
||||
});
|
||||
if (temp.window_id << 0 == -1) {
|
||||
$store.commit("cleanWindows", {
|
||||
window_id: temp.window_id,
|
||||
});
|
||||
} else {
|
||||
$store.commit("removeWindow", {
|
||||
window_id: temp.window_id,
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -413,9 +413,15 @@ export default defineComponent({
|
|||
{
|
||||
const temp = JSON.parse(notify.data);
|
||||
if (temp && temp.window_id) {
|
||||
$store.commit("removeWindow", {
|
||||
window_id: temp.window_id,
|
||||
});
|
||||
if (temp.window_id << 0 == -1) {
|
||||
$store.commit("cleanWindows", {
|
||||
window_id: temp.window_id,
|
||||
});
|
||||
} else {
|
||||
$store.commit("removeWindow", {
|
||||
window_id: temp.window_id,
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -449,6 +449,9 @@ export default store(function (/* { ssrContext } */) {
|
|||
console.log("window_id???");
|
||||
}
|
||||
},
|
||||
cleanWindows(state: StateInterface, playload?: any) {
|
||||
state.windows.splice(0, state.windows.length);
|
||||
},
|
||||
editWindow(state: StateInterface, playload?: any) {
|
||||
const uuid = playload.uuid;
|
||||
const new_window = playload.new_window as WindowOpenNotifyEntity;
|
||||
|
|
Loading…
Reference in New Issue