From d93852affc4356e9a41933e88e89b8ebaa091b2e Mon Sep 17 00:00:00 2001 From: joylink_zhaoerwei Date: Tue, 14 Nov 2023 10:37:36 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=A7=E7=94=B5=E5=99=A8=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E9=9D=A2=E6=9D=BF=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/line-app/states/RelayState.vue | 82 ++++++++++++++----- src/drawApp/relayScene.ts | 13 --- 2 files changed, 60 insertions(+), 35 deletions(-) diff --git a/src/components/line-app/states/RelayState.vue b/src/components/line-app/states/RelayState.vue index aa560ab..2857dec 100644 --- a/src/components/line-app/states/RelayState.vue +++ b/src/components/line-app/states/RelayState.vue @@ -26,11 +26,14 @@ diff --git a/src/drawApp/relayScene.ts b/src/drawApp/relayScene.ts index 7f3334c..724e5a5 100644 --- a/src/drawApp/relayScene.ts +++ b/src/drawApp/relayScene.ts @@ -87,19 +87,6 @@ function handleSubscribe(relayScene: IGraphicScene) { } }); } - if (states && states.length && app.selectedGraphics.length) { - const selectedGraphic = app.selectedGraphics[0]; - const find = states.find((item) => { - return ( - item.graphicType == Relay.Type && - (item as RelayState).id == selectedGraphic.id && - selectedGraphic.updateStates(item) - ); - }); - if (find) { - lineStore.setSocketStates([find]); - } - } return states; }, graphicQueryer: (state: GraphicState, store: GraphicQueryStore) => {