|
@@ -9,7 +9,6 @@ import { getAppInstanceId } from '@/utils/draw' |
|
@@ -9,7 +9,6 @@ import { getAppInstanceId } from '@/utils/draw' |
9
|
import type { RenderComponentExposeType } from '@/core/Library/types'
|
9
|
import type { RenderComponentExposeType } from '@/core/Library/types'
|
10
|
import { useLatestMessageValue } from '@/core/Library/hook/useLatestMessageValue'
|
10
|
import { useLatestMessageValue } from '@/core/Library/hook/useLatestMessageValue'
|
11
|
import type { NodeDataDataSourceJsonType } from '@/api/node/model'
|
11
|
import type { NodeDataDataSourceJsonType } from '@/api/node/model'
|
12
|
-import { ControlComponentEnum } from '@/core/Library/packages/Control'
|
|
|
13
|
|
12
|
|
14
|
export class MessageHandler {
|
13
|
export class MessageHandler {
|
15
|
constructor(public service: LightboxModeWebsocketService) {
|
14
|
constructor(public service: LightboxModeWebsocketService) {
|
|
@@ -53,7 +52,6 @@ export class MessageHandler { |
|
@@ -53,7 +52,6 @@ export class MessageHandler { |
53
|
|
52
|
|
54
|
defaultHandler(commandSource: CommandSource, message: SubscriptionUpdateMsg) {
|
53
|
defaultHandler(commandSource: CommandSource, message: SubscriptionUpdateMsg) {
|
55
|
const { data, node } = commandSource
|
54
|
const { data, node } = commandSource
|
56
|
- if (this.nodeUtils.getNodeComponentKey(this.nodeUtils.getCellById(node)) === ControlComponentEnum.PARAMETER_SETTINGS) return
|
|
|
57
|
const { attr } = data as NodeDataDataSourceJsonType
|
55
|
const { attr } = data as NodeDataDataSourceJsonType
|
58
|
const { latestValue } = useLatestMessageValue(message.data, attr)
|
56
|
const { latestValue } = useLatestMessageValue(message.data, attr)
|
59
|
if (isNull(latestValue)) return
|
57
|
if (isNull(latestValue)) return
|