修复比对式一键检测
This commit is contained in:
@@ -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');
|
||||
};
|
||||
|
||||
// 处理标准设备通道切换
|
||||
|
||||
Reference in New Issue
Block a user