Showing
3 changed files
with
3 additions
and
8 deletions
@@ -18,6 +18,7 @@ function initChart(canvas: any, width: any, height: any, data: any, dpr: any) { | @@ -18,6 +18,7 @@ function initChart(canvas: any, width: any, height: any, data: any, dpr: any) { | ||
18 | series: [{ | 18 | series: [{ |
19 | type: 'pie', | 19 | type: 'pie', |
20 | avoidLabelOverlap: false, | 20 | avoidLabelOverlap: false, |
21 | + minAngle: 5, // 1、最小角度- 防止数据量太小 | ||
21 | center: ['50%', '50%'], | 22 | center: ['50%', '50%'], |
22 | radius: ['40%', '60%'], | 23 | radius: ['40%', '60%'], |
23 | labelLine: { | 24 | labelLine: { |
@@ -3,7 +3,7 @@ import Toast from '@vant/weapp/toast/toast'; | @@ -3,7 +3,7 @@ import Toast from '@vant/weapp/toast/toast'; | ||
3 | import { API_CONST } from "./../../api/smartElectric"; | 3 | import { API_CONST } from "./../../api/smartElectric"; |
4 | import { getUnitEvent, getCardEvent } from './../../utils/util' | 4 | import { getUnitEvent, getCardEvent } from './../../utils/util' |
5 | import { HTTPService as HTTP } from "./../../services/HTTPService"; | 5 | import { HTTPService as HTTP } from "./../../services/HTTPService"; |
6 | -import { messageFileProps } from 'miniprogram/miniprogram_npm/@vant/weapp/uploader/shared'; | 6 | + |
7 | Page({ | 7 | Page({ |
8 | 8 | ||
9 | /** | 9 | /** |
@@ -673,12 +673,6 @@ Page({ | @@ -673,12 +673,6 @@ Page({ | ||
673 | }); | 673 | }); |
674 | } | 674 | } |
675 | 675 | ||
676 | - }).catch(() => { | ||
677 | - | ||
678 | - }).finally(() => { | ||
679 | - this.setData({ | ||
680 | - tableList: [] | ||
681 | - }) | ||
682 | }) | 676 | }) |
683 | } | 677 | } |
684 | }) | 678 | }) |