diff --git a/src/entities/WSProtocol.ts b/src/entities/WSProtocol.ts index fd2b832..96fff2d 100644 --- a/src/entities/WSProtocol.ts +++ b/src/entities/WSProtocol.ts @@ -1994,6 +1994,8 @@ export namespace Protocol { export class SetWindowPollingDataResponseEntity extends Protocol.PacketEntity { success = false; + polling = false; + new_polling_uuid = ""; constructor() { super(); diff --git a/src/pages/WallPage.vue b/src/pages/WallPage.vue index 3f28819..a5fa7c6 100644 --- a/src/pages/WallPage.vue +++ b/src/pages/WallPage.vue @@ -1052,9 +1052,11 @@ export default defineComponent({ }); return; } - const polling = GlobalData.getInstance()._pollings.find( + const polling = GlobalData.getInstance().pollings.find( (element) => element && element.uuid == window.polling_uuid ); + console.log(GlobalData.getInstance().pollings); + console.log(window.polling_uuid); const signal_source = GlobalData.getInstance().signal_source.find( (element) => element && element.uuid == window.signal_source_table_uuid @@ -1072,6 +1074,12 @@ export default defineComponent({ ?.setWindowPollingData(window_id, name, datas); if (resposne) { if (resposne.success) { + $store.commit("setWindowProperty", { + window, + property_name: "polling_uuid", + value: resposne.new_polling_uuid, + }); + window.polling_uuid = resposne.new_polling_uuid; $q.notify({ color: "positive", icon: "done",