Commit 02cbcec9 authored by Timmy Zhang's avatar Timmy Zhang Committed by ι™ˆεΈ…

remove useless code (#4017)

parent ee9ea555
...@@ -151,7 +151,6 @@ class Pie extends Component { ...@@ -151,7 +151,6 @@ class Pie extends Component {
let tooltip = propsTooltip; let tooltip = propsTooltip;
const defaultColors = colors; const defaultColors = colors;
data = data || [];
selected = selected || true; selected = selected || true;
tooltip = tooltip || true; tooltip = tooltip || true;
let formatColor; let formatColor;
......
...@@ -152,7 +152,7 @@ export function isUrl(path) { ...@@ -152,7 +152,7 @@ export function isUrl(path) {
export function formatWan(val) { export function formatWan(val) {
const v = val * 1; const v = val * 1;
if (!v || Number.isNaN(v)) return ''; if (!v) return '';
let result = val; let result = val;
if (val > 10000) { if (val > 10000) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment