From 4665095372aa43e74fa8414d4c5072b78c0ffcfb Mon Sep 17 00:00:00 2001 From: YANG QIA <2013xile@gmail.com> Date: Fri, 8 Dec 2023 16:56:05 +0800 Subject: [PATCH] fix(bi): import bug (#3165) --- .../plugin-data-visualization/src/client/filter/utils.ts | 2 +- .../plugin-data-visualization/src/client/hooks/filter.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/utils.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/utils.ts index 0e0a2ef35..18515af22 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/utils.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/utils.ts @@ -1,4 +1,4 @@ -import { moment2str } from '@nocobase/utils'; +import { moment2str } from '@nocobase/utils/client'; import dayjs from 'dayjs'; export const getOptionsSchema = () => { diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/filter.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/filter.ts index 5a44c41d1..f4717c685 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/filter.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/hooks/filter.ts @@ -6,7 +6,7 @@ import { Schema } from '@formily/react'; import { useChartsTranslation } from '../locale'; import { ChartFilterContext } from '../filter/FilterProvider'; import { useMemoizedFn } from 'ahooks'; -import { parse } from '@nocobase/utils'; +import { parse } from '@nocobase/utils/client'; import lodash from 'lodash'; import { getValuesByPath } from '../utils'; import deepmerge from 'deepmerge';