From af8e9b6121ca41e0b3eef0a134b7b0928745a6b3 Mon Sep 17 00:00:00 2001 From: tingfuyeh Date: Sun, 28 Apr 2024 11:19:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E5=8F=AF=E8=A7=81=E6=80=A7=E4=B8=8D=E6=98=BE=E7=A4=BA=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/polaris/namespace/getColumns.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/web/src/polaris/namespace/getColumns.tsx b/web/src/polaris/namespace/getColumns.tsx index 6aa4714b..07af9a13 100644 --- a/web/src/polaris/namespace/getColumns.tsx +++ b/web/src/polaris/namespace/getColumns.tsx @@ -4,7 +4,7 @@ import NamespacePageDuck, { NamespaceItem } from './PageDuck' import { Bubble, Text } from 'tea-component' import { Column } from '../common/ducks/GridPage' import Action from '../common/duckComponents/grid/Action' -import { CheckVisibilityMode, VisibilityMode } from '../service/operation/CreateDuck' +import { CheckVisibilityMode, VisibilityMode, VisibilityModeMap } from '../service/operation/CreateDuck' export default ({ duck: { creators } }: DuckCmpProps): Column[] => [ { @@ -17,12 +17,11 @@ export default ({ duck: { creators } }: DuckCmpProps): Column header: '服务可见性', render: x => { const visibilityMode = CheckVisibilityMode(x.service_export_to, x.name) - if (!visibilityMode.length) return '-' return ( - + {visibilityMode ? ( - VisibilityMode[visibilityMode] + VisibilityModeMap[visibilityMode] ) : (