From 81bed61caf03adcf9a57068b1b621df5e7604b85 Mon Sep 17 00:00:00 2001 From: sheng <905537351@qq.com> Date: Fri, 26 Jun 2026 17:56:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BC=82=E5=B8=B8=E4=B8=8D?= =?UTF-8?q?=E8=89=AF=E7=AE=A1=E7=90=86=E8=AE=BE=E5=A4=87=E7=B1=BB=E5=88=AB?= =?UTF-8?q?=E7=A9=BA=E5=80=BC=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../product-model/product-ng-info/index.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/production-master-data/product-model/product-ng-info/index.vue b/src/views/production-master-data/product-model/product-ng-info/index.vue index 09e831e6..63153795 100644 --- a/src/views/production-master-data/product-model/product-ng-info/index.vue +++ b/src/views/production-master-data/product-model/product-ng-info/index.vue @@ -316,11 +316,12 @@ export default { return { list: [], total: 0 } }, normalizeRow (row) { - const deviceCategory = typeof row.DeviceCategory === 'object' + const isObject = value => value && typeof value === 'object' + const deviceCategory = isObject(row.DeviceCategory) ? row.DeviceCategory - : (typeof row.device_category === 'object' + : (isObject(row.device_category) ? row.device_category - : (typeof row.category === 'object' ? row.category : {})) + : (isObject(row.category) ? row.category : {})) const option = this.deviceCategoryOptions.find(item => String(item.value) === String(row.device_category_id || deviceCategory.id || '')) return { ...row,