From 5b0dd4529b72e998ef35425c3fd74640ee9040ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=A2=A6=E8=BF=9C?= <1063331231@qq.com> Date: Thu, 3 Jul 2025 15:27:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=80=E6=9C=89=E7=9A=84=E4=B8=8A=E6=8A=A5?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E5=AD=98=E5=82=A8=E5=88=B0=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app.vue | 1 + src/components/system/ErrorEventsModal.vue | 8 ++-- src/layouts/default.vue | 70 ++++++++++++++++++++++++++++-- src/stores/systemStore.ts | 33 +++++++++++++- src/types/system.d.ts | 22 ++++++++++ 5 files changed, 124 insertions(+), 10 deletions(-) diff --git a/src/app.vue b/src/app.vue index 8e2b2b5..4e552b8 100644 --- a/src/app.vue +++ b/src/app.vue @@ -57,6 +57,7 @@ subscribeEvent('stateUpdate', (data) => { } else if (data.fromClass === 'AppCore') { // 应用事件上报 deviceStateStore.setDeviceState(data.rely) + systemStore.insertLogs(data.rely.appEvents) } else if (data.fromClass === 'TestPageCtrlService') { // 测试页面状态上报 debugStore.updateDebugPageState(data.rely) diff --git a/src/components/system/ErrorEventsModal.vue b/src/components/system/ErrorEventsModal.vue index a2c8608..0ac5eb5 100644 --- a/src/components/system/ErrorEventsModal.vue +++ b/src/components/system/ErrorEventsModal.vue @@ -2,13 +2,13 @@ import { ref, watchEffect } from 'vue' import { syncSendCmd } from '@/apis/system' -import { useDeviceStore } from '@/stores/deviceStore' +// import { useDeviceStore } from '@/stores/deviceStore' -const deviceStore = useDeviceStore() +// const deviceStore = useDeviceStore() const appEvents = ref[]>([]) watchEffect(() => { - appEvents.value = deviceStore.deviceStete.appEvents + // appEvents.value = deviceStore.deviceStete.appEvents }) const confirmClose = (item: Record) => { @@ -41,7 +41,7 @@ const confirmClose = (item: Record) => { {{ checkItem.ecodeInfo }} - {{ item.description || item.message }} +