From 3bf491d8adbc59c32f27d4aa3b5e65a349a6236d Mon Sep 17 00:00:00 2001 From: Lei OT Date: Tue, 10 Sep 2024 14:04:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BA=A7=E5=93=81=E7=AE=A1=E7=90=86:=20?= =?UTF-8?q?=E7=BC=96=E8=BE=91:=20=E6=8E=A8=E8=8D=90=E6=8C=87=E6=95=B0,=20?= =?UTF-8?q?=E8=87=AA=E7=94=B1=E8=BE=93=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/products/Detail/ProductInfoForm.jsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/products/Detail/ProductInfoForm.jsx b/src/views/products/Detail/ProductInfoForm.jsx index 7c55328..5f3a815 100644 --- a/src/views/products/Detail/ProductInfoForm.jsx +++ b/src/views/products/Detail/ProductInfoForm.jsx @@ -250,7 +250,8 @@ function getFields(props) { 99, {/* */} - + /> */} , fieldProps?.recommends_rate?.col || midCol ), @@ -376,7 +377,7 @@ const formValuesMapper = (values) => { ], 'dept': { key: 'dept_id', transform: (value) => (typeof value === 'string' ? value : value?.value || value?.key || '') }, 'open_weekdays': { key: 'open_weekdays', transform: (value) => (Array.isArray(value) ? value.join(',') : value) }, - 'recommends_rate': { key: 'recommends_rate', transform: (value) => ((typeof value === 'string' || typeof value === 'number') ? value : value?.value || value?.key || '') }, + // 'recommends_rate': { key: 'recommends_rate', transform: (value) => ((typeof value === 'string' || typeof value === 'number') ? value : value?.value || value?.key || '') }, // 'lgc_details': [ // { // key: 'lgc_details',