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,