修复比对式一键检测

This commit is contained in:
sjl
2025-09-17 15:42:05 +08:00
parent c88128b63b
commit bbd438d23f
4 changed files with 19 additions and 9 deletions

View File

@@ -132,7 +132,7 @@ const getMappedDutChannel = (deviceName: string, stdChannel: string) => {
const formatDutChannelLabel = (dutChannel: string) => {
// 如果是"被检设备X通道Y"格式,则转换为"被检设备X-通道Y"
if (!dutChannel) return '未映射';
return dutChannel.replace(/(被检设备\d+)(通道\d+)/, '$1-$2');
return dutChannel.replace(/(.+)(通道\d+)/, '$1-$2');
};
// 处理标准设备通道切换