From 29c53b976a1e006e40d55976f3548d9014ec5820 Mon Sep 17 00:00:00 2001 From: dailer Date: Tue, 16 Nov 2021 15:28:21 +0800 Subject: [PATCH] =?UTF-8?q?DEC-21469=20fix:=20=E3=80=90=E8=BF=AD=E4=BB=A3?= =?UTF-8?q?=E3=80=91=E3=80=90=E9=A9=B1=E5=8A=A8=E7=AE=A1=E7=90=86v1.1?= =?UTF-8?q?=E3=80=91=E4=B8=A4=E4=B8=AA=E9=A9=B1=E5=8A=A8=E7=B1=BB=E7=9B=B8?= =?UTF-8?q?=E5=90=8C=E7=9A=84=E8=87=AA=E5=AE=9A=E4=B9=89=E9=A9=B1=E5=8A=A8?= =?UTF-8?q?=EF=BC=8C=E6=96=B0=E5=BB=BA=E6=95=B0=E6=8D=AE=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E5=90=8E=E4=BC=9A=E9=BB=98=E8=AE=A4=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E6=9C=80=E6=96=B0=E7=9A=84=E9=82=A3=E4=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../maintain/components/driverselector/driverselector.model.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/pages/maintain/components/driverselector/driverselector.model.ts b/src/modules/pages/maintain/components/driverselector/driverselector.model.ts index 384e4f4..382f439 100644 --- a/src/modules/pages/maintain/components/driverselector/driverselector.model.ts +++ b/src/modules/pages/maintain/components/driverselector/driverselector.model.ts @@ -67,7 +67,8 @@ export class DriverSelectorModel extends Model { this.model.customDriver.driver = driver; this.model.customDrivers.some(customDriver => { - if (customDriver.driverClass === driver) { + // DEC-21469 存在driver值相同但driver名不同的场景,因此要用拼接名判断 + if (`${customDriver.driverClass} (${customDriver.name})` === value) { this.model.driverSource = customDriver.name; this.model.customDriver.value = `${driver} (${customDriver.name})`;