Browse Source

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

houzekong 1 tuần trước cách đây
mục cha
commit
e6d8ee1fd1
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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 {