src/views/historymode/HistoryMode.vue
@@ -19,6 +19,7 @@ <FactorLegend class="m-t-2" :factor="factorDatas.factor[factorType]" @change="handleLegendTypeChange" ></FactorLegend> </el-row> <el-row class="historical" justify="center"> @@ -134,6 +135,15 @@ this.sceneStore.searchScene(lng, lat); } }, handleLegendTypeChange(value, done) { if (value) { this.factorDatas.resetRange(); } else { this.factorDatas.standardRange(); } done(); this.draw(); }, draw() { // 刷新图例 const factor = this.factorDatas.factor[this.factorType];