From aa13c26a1fcf1b23c3f59c1f193e00e255f8f02c Mon Sep 17 00:00:00 2001 From: chenxt <10125295+chen-xintao97@user.noreply.gitee.com> Date: Thu, 26 Mar 2026 17:37:02 +0800 Subject: [PATCH] 处理按钮没有sControlName报错的问题 --- src/components/Common/CommonTable/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Common/CommonTable/index.js b/src/components/Common/CommonTable/index.js index 8c967ce..9bec1da 100644 --- a/src/components/Common/CommonTable/index.js +++ b/src/components/Common/CommonTable/index.js @@ -4877,8 +4877,8 @@ class CommonTableRc extends React.Component { props.onCopyTo(props.name, config.sActiveId, config, copyToConfig, record) return } - if (selectedRowKeys.includes(rowKeyId)) { - if (sControlName.includes('_qlyqualityinspec')) { + if (selectedRowKeys?.includes(rowKeyId)) { + if (sControlName?.includes('_qlyqualityinspec')) { const { app } = props; const { token, currentMesPane } = app; const { sModelsId } = currentMesPane || {}; -- libgit2 0.22.2