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 }} +