From 78d0f37488e1d07b193395a95481e53cab9ffd44 Mon Sep 17 00:00:00 2001 From: wenlele Date: Mon, 15 Jan 2024 14:38:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E5=9B=BE=E7=BB=9F=E6=8F=BD=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sections/analysis/containers/network.jsx | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/web/client/src/sections/analysis/containers/network.jsx b/web/client/src/sections/analysis/containers/network.jsx index 45a38b7..bfc1480 100644 --- a/web/client/src/sections/analysis/containers/network.jsx +++ b/web/client/src/sections/analysis/containers/network.jsx @@ -92,7 +92,7 @@ const Network = ({ > { - setProjectValue(v) - setSpinning(true) - form.current.setValue('projectId', v) + if (projectValue != v) { + setProjectValue(v) + setSpinning(true) + form.current.setValue('projectId', v) + } }} /> ({ value: d.thingId, label: d.strucName })) || []} onSelect={v => { - setSpinning(true) - setThingId(v) - form.current.setValue('thingId', v) + if (thingId != v) { + setSpinning(true) + setThingId(v) + form.current.setValue('thingId', v) + } }} />