pad信号源列表过滤掉隐藏信号源。添加清屏协议处理

This commit is contained in:
fangxiang 2022-04-22 09:54:14 +08:00
parent ea4c0d44ef
commit 9b68fa58a5
4 changed files with 25 additions and 7 deletions

View File

@ -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,
});

View File

@ -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;

View File

@ -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;

View File

@ -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;