소스 검색

[Fix 0000] 可配置首页formatter错误修复

houzekong 1 주 전
부모
커밋
e6d8ee1fd1
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/views/vent/home/configurable/hooks/helper.ts

+ 2 - 1
src/views/vent/home/configurable/hooks/helper.ts

@@ -1,4 +1,5 @@
-import { get, isEmpty, isNil } from 'lodash-es';
+import { get, isNil } from 'lodash-es';
+import { isEmpty } from '/@/utils/is';
 
 /** 根据配置中的 formatter 将文本格式并返回 */
 export function getFormattedText(data: any, formatter: string, trans?: Record<string, string>, defaultValue?: any): string {