diff --git a/src/pad/BottomBar.vue b/src/pad/BottomBar.vue index 9240c3e..8f3320c 100644 --- a/src/pad/BottomBar.vue +++ b/src/pad/BottomBar.vue @@ -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, }); diff --git a/src/pad/ContentWall.vue b/src/pad/ContentWall.vue index 277bb2f..0b6fc8a 100644 --- a/src/pad/ContentWall.vue +++ b/src/pad/ContentWall.vue @@ -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; diff --git a/src/pages/WallPage.vue b/src/pages/WallPage.vue index 88c677b..735432c 100644 --- a/src/pages/WallPage.vue +++ b/src/pages/WallPage.vue @@ -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; diff --git a/src/store/index.ts b/src/store/index.ts index a41f7e4..2f44fef 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -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;