From 44e4204b1f446f0239d84af2160b76649c52502a Mon Sep 17 00:00:00 2001 From: betaqi <3188864257@qq.com> Date: Wed, 5 Nov 2025 13:46:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=BB=E5=8A=A1=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/taskList/index.vue | 5 +++-- src/views/taskList/infoDrawer.vue | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/views/taskList/index.vue b/src/views/taskList/index.vue index c12c2ce..7105d19 100644 --- a/src/views/taskList/index.vue +++ b/src/views/taskList/index.vue @@ -110,6 +110,7 @@ function onTaskFinish(id: string, status: 0 | 1 | 3) { } function zmqTaskCb(msg: SubMsgData) { + console.log('rootPage', msg) const { feedback } = msg const taskId = feedback[0] const deviceSN = feedback[1] @@ -131,10 +132,10 @@ function zmqTaskCb(msg: SubMsgData) { onMounted(async () => { await getList() - worker.subscribe(getSubTopic('server', 'event', 'task'), zmqTaskCb) + worker.subscribe(getSubTopic('server', 'event', 'task'), zmqTaskCb, 'rootPage') }) onUnmounted(() => { - worker.unsubscribe(getSubTopic('server', 'event', 'task')) + worker.unsubscribe(getSubTopic('server', 'event', 'task'), 'rootPage') }) diff --git a/src/views/taskList/infoDrawer.vue b/src/views/taskList/infoDrawer.vue index 8e6d7aa..89bd768 100644 --- a/src/views/taskList/infoDrawer.vue +++ b/src/views/taskList/infoDrawer.vue @@ -7,7 +7,7 @@