From ac15da5faadd28ece3c3878ce3030f9eb8d44e72 Mon Sep 17 00:00:00 2001 From: xufenglei <xufenglei> Date: Mon, 16 Jul 2018 16:06:27 +0800 Subject: [PATCH] 更新 --- src/app/routes/forecasting-warning/forecasting-warning.component.ts | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/routes/forecasting-warning/forecasting-warning.component.ts b/src/app/routes/forecasting-warning/forecasting-warning.component.ts index 6f7f56d..80765ba 100644 --- a/src/app/routes/forecasting-warning/forecasting-warning.component.ts +++ b/src/app/routes/forecasting-warning/forecasting-warning.component.ts @@ -64,7 +64,8 @@ } initForecasting() { - this.option['legend'] = {}; + delete this.option.series[1]; + delete this.option['legend']; this.option.xAxis.data = []; const temp = []; const humidity = []; @@ -146,7 +147,8 @@ } initWarning() { - this.option['legend'] = {}; + delete this.option.series[1]; + delete this.option['legend']; this.isShow = true; const PM2_5 = []; const PM10 = []; const CO = []; const NO2 = []; const O3 = []; const SO2 = []; const title = '������������������'; -- Gitblit v1.8.0