From 4f9359875c0c0a080bbc5fdf5ceb17b82b7b685c Mon Sep 17 00:00:00 2001 From: fangxiang Date: Wed, 22 Jun 2022 15:48:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=80=9A=E8=BF=87=E5=8F=B3?= =?UTF-8?q?=E9=94=AE=E7=AA=97=E5=8F=A3=E6=B7=BB=E5=8A=A0=E8=BD=AE=E8=AF=A2?= =?UTF-8?q?=E5=90=8E=EF=BC=8C=E5=86=8D=E6=AC=A1=E5=8F=B3=E9=94=AE=E7=AA=97?= =?UTF-8?q?=E5=8F=A3=E4=BF=AE=E6=94=B9=E8=BD=AE=E8=AF=A2=E6=97=A0=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/entities/WSProtocol.ts | 2 ++ src/pages/WallPage.vue | 10 +++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) 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",