|
@@ -38,9 +38,9 @@
|
|
|
import { TooltipComponent, LegendComponent, TitleComponent } from 'echarts/components';
|
|
import { TooltipComponent, LegendComponent, TitleComponent } from 'echarts/components';
|
|
|
import { ViolationCount } from '@/api/home/home.ts';
|
|
import { ViolationCount } from '@/api/home/home.ts';
|
|
|
import VChart from 'vue-echarts';
|
|
import VChart from 'vue-echarts';
|
|
|
- import * as echarts from 'echarts';
|
|
|
|
|
|
|
+ import * as echarts from 'echarts'; // 保留此行引入,防止诸如*labelLayout*等属性打包后不生效问题
|
|
|
|
|
|
|
|
- console.log(echarts);
|
|
|
|
|
|
|
+ console.log(echarts); // 此行仅为消除上一行import代码的eslint警告
|
|
|
|
|
|
|
|
const props = defineProps<{
|
|
const props = defineProps<{
|
|
|
data: ViolationCount;
|
|
data: ViolationCount;
|