From 3e5033d403d8ddb54790bbfa8e3a3c1a3123a446 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=8D=9A=E6=96=87?= <1179111926@qq.com> Date: Thu, 8 Sep 2022 17:05:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=A5=E5=8F=A3=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Simulation/index.tsx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/pages/Simulation/index.tsx b/src/pages/Simulation/index.tsx index d111bdf..3579569 100644 --- a/src/pages/Simulation/index.tsx +++ b/src/pages/Simulation/index.tsx @@ -267,15 +267,19 @@ const Page = () => { }); param.name = ''; param.keys = []; - if (param.type === 1) { + if (param.u3dType === 2) { + param.type = 1; param.bText = '开机棒连接成功'; - } else if (param.type === 2) { + } else if (param.u3dType === 3) { + param.type = 2; param.cText = '授启棒连接成功'; - } else if (param.type === 3) { - param.aText = '密码设备连接成功'; - param.name = `${param.name}_${param.deviceId}`; - } else if (param.type === 4) { + } else if (param.u3dType === 1) { + param.type = 4; param.aText = '注入器连接成功'; + } else { + param.type = 3; + param.aText = '密码设备连接成功'; + param.name = `${param.deviceType?.typeNumber}_${param.deviceId}`; } realData = [ ...dataSave.current,