diff --git a/src/components/Table/src/hooks/useRender.ts b/src/components/Table/src/hooks/useRender.ts index 4fdb080a..85d04903 100644 --- a/src/components/Table/src/hooks/useRender.ts +++ b/src/components/Table/src/hooks/useRender.ts @@ -50,9 +50,6 @@ export const useRender = { } }, renderDict: (text, type, dictType?) => { - if (!text) { - return '' - } if (type) { return h(DictTag, { type: type, diff --git a/src/utils/dict.ts b/src/utils/dict.ts index f6f40c00..5d26ffde 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -68,7 +68,7 @@ export const getBoolDictOptions = (dictType: string) => { export const getDictObj = (dictType: string, value: any) => { const dictOptions: DictDataType[] = getDictOptions(dictType) - if (dictOptions && dictOptions.length > 0) { + if (dictOptions) { dictOptions.forEach((dict: DictDataType) => { if (dict.value === value.toString()) { return dict