mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-05 07:26:36 +08:00
[修复] 修复组件显示问题
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
import ReactEChartsCore from 'echarts-for-react/lib/core';
|
import ReactEChartsCore from 'echarts-for-react/lib/core';
|
||||||
import type { EChartsCoreOption } from 'echarts/core';
|
import type { EChartsCoreOption } from 'echarts/core';
|
||||||
import * as echarts from 'echarts/core';
|
import * as echarts from 'echarts/core';
|
||||||
import { ScatterChart } from 'echarts/charts';
|
import { MapChart, ScatterChart } from 'echarts/charts';
|
||||||
import { GeoComponent, TooltipComponent } from 'echarts/components';
|
import { GeoComponent, TooltipComponent } from 'echarts/components';
|
||||||
import { CanvasRenderer } from 'echarts/renderers';
|
import { CanvasRenderer } from 'echarts/renderers';
|
||||||
import { useRouter } from 'next/navigation';
|
import { useRouter } from 'next/navigation';
|
||||||
@@ -20,7 +20,13 @@ import {
|
|||||||
getOpenrestyStatusLabel,
|
getOpenrestyStatusLabel,
|
||||||
} from '@/features/nodes/utils';
|
} from '@/features/nodes/utils';
|
||||||
|
|
||||||
echarts.use([GeoComponent, TooltipComponent, ScatterChart, CanvasRenderer]);
|
echarts.use([
|
||||||
|
GeoComponent,
|
||||||
|
TooltipComponent,
|
||||||
|
MapChart,
|
||||||
|
ScatterChart,
|
||||||
|
CanvasRenderer,
|
||||||
|
]);
|
||||||
|
|
||||||
const fallbackCoordinates = [
|
const fallbackCoordinates = [
|
||||||
[-122.4194, 37.7749],
|
[-122.4194, 37.7749],
|
||||||
|
|||||||
Reference in New Issue
Block a user