From 47236c4ed171e33b61a25b5620ab20e46111fab2 Mon Sep 17 00:00:00 2001 From: zhangjiming Date: Fri, 3 Jan 2025 16:05:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=94=99=E8=AF=AF+=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E5=8C=96+=E9=80=9A=E7=9F=A5=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/eventBus.ts | 1 + src/pages/Index/Index.vue | 33 ++------- src/pages/Index/Regular/Consumables.vue | 127 +++++++++++++++++++++----------- src/utils/errorHandler.ts | 8 +- 4 files changed, 98 insertions(+), 71 deletions(-) diff --git a/src/eventBus.ts b/src/eventBus.ts index 8525a65..2127bcb 100644 --- a/src/eventBus.ts +++ b/src/eventBus.ts @@ -15,6 +15,7 @@ export type ErrorModalData = { } type Events = { + initDevice: void confirm: { value: number; index: number } 'show-error-modal': ErrorModalData 'show-stack-modal': ErrorModalData['stackInfo'] | null | undefined diff --git a/src/pages/Index/Index.vue b/src/pages/Index/Index.vue index 310f36e..2d1cec6 100644 --- a/src/pages/Index/Index.vue +++ b/src/pages/Index/Index.vue @@ -83,12 +83,13 @@