From 5f37df75cc777644337e8db5928bb105dffc020a Mon Sep 17 00:00:00 2001 From: lys <971387674@qq.com> Date: Fri, 15 Nov 2024 15:49:13 +0800 Subject: [PATCH] =?UTF-8?q?feature/=E4=B8=9A=E5=8A=A1=E7=BA=BF=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/unitTable/renderColsOpts.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/pages/unitTable/renderColsOpts.tsx b/src/pages/unitTable/renderColsOpts.tsx index c87fc0e..4c27bd9 100644 --- a/src/pages/unitTable/renderColsOpts.tsx +++ b/src/pages/unitTable/renderColsOpts.tsx @@ -404,13 +404,15 @@ export function renderCols(initialState: any[], type: string, i18n?: AnyObject, onClick: () => postMessageToParent("log", record) } ]; - isSpecial && items.shift(); + (isSpecial || !record?.opts.includes("admin")) && items.shift(); return ( - - {isSpecial ? ( + {record?.opts.includes("admin") && ( + + )} + {isSpecial && record?.opts.includes("admin") ? (