From bcbf775756bfc0ee7379a291d1921acbed4a490a Mon Sep 17 00:00:00 2001 From: JEECG <445654970@qq.com> Date: Mon, 15 Dec 2025 10:56:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=A1=A8=E9=80=89=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E5=BC=82=E5=B8=B8=20#9173?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jeecgboot-vue3/src/hooks/system/useListPage.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jeecgboot-vue3/src/hooks/system/useListPage.ts b/jeecgboot-vue3/src/hooks/system/useListPage.ts index 80db2c02b..85968558d 100644 --- a/jeecgboot-vue3/src/hooks/system/useListPage.ts +++ b/jeecgboot-vue3/src/hooks/system/useListPage.ts @@ -132,8 +132,8 @@ export function useListPage(options: ListPageOptions) { for (const column of columns) { if(!column.defaultHidden){ let dataIndex = column?.dataIndex; - if(column?.dataIndex!.toString().indexOf('_dictText')){ - dataIndex = column?.dataIndex!.toString().replace('_dictText','') + if(column?.dataIndex?.toString()?.indexOf('_dictText') !== -1){ + dataIndex = column?.dataIndex?.toString().replace('_dictText','') } exportFields.push(dataIndex); } else {