diff --git a/packages/ui/certd-client/src/plugin/fast-crud/index.tsx b/packages/ui/certd-client/src/plugin/fast-crud/index.tsx index bfd26a4a..5f0d9f6d 100644 --- a/packages/ui/certd-client/src/plugin/fast-crud/index.tsx +++ b/packages/ui/certd-client/src/plugin/fast-crud/index.tsx @@ -95,7 +95,7 @@ function install(app: App, options: any = {}) { //不能用 !scope.value , 否则switch组件设置为关之后就消失了 const { value, key, props } = scope; - return value != null && key != "_index" && value != ""; + return !value && key != "_index" && value != false && value != 0; }, render() { return "-";