diff --git a/src/components/common/FTStream/index.vue b/src/components/common/FTStream/index.vue index 88c3067..dafd571 100644 --- a/src/components/common/FTStream/index.vue +++ b/src/components/common/FTStream/index.vue @@ -20,9 +20,7 @@ const maskRef = ref(null) const maskHeaderRef = ref(null) const statusMap = { - info: 'info', error: 'danger', - warn: 'warning', success: 'success', finish: 'primary', SEND: 'primary', @@ -112,7 +110,7 @@ const handleMouseUp = () => { v-for="item in systemStore.systemList" :key="item" :timestamp="JSON.stringify(item.content)" > - + {{ item.title }} diff --git a/src/views/debug/index.vue b/src/views/debug/index.vue index bbe3859..73d98fc 100644 --- a/src/views/debug/index.vue +++ b/src/views/debug/index.vue @@ -11,14 +11,16 @@ const debugStore = useDebugStore() let currentCommandId = '' onMounted(() => { - socket.init(receiveMessage, 'notification') + socket.init(receiveMessage, 'cmd_debug') + socket.init(receiveMessage, 'cmd_response') }) onUnmounted(() => { - socket.unregisterCallback(receiveMessage, 'notification') + socket.unregisterCallback(receiveMessage, 'cmd_debug') + socket.unregisterCallback(receiveMessage, 'cmd_response') }) -const receiveMessage = (data: Socket.NotificationData) => { +const receiveMessage = (data: Socket.cmdData) => { data.commandId === currentCommandId && systemStore.pushSystemList(data) }