From c35074e0e33054bb6c5ada22f8104422ae953b17 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期五, 21 二月 2025 17:19:04 +0800 Subject: [PATCH] 1. 新增默认加载时先判断各选项是否获取完成逻辑 --- src/views/historymode/HistoryMode.vue | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/views/historymode/HistoryMode.vue b/src/views/historymode/HistoryMode.vue index 9f9c573..e7978dd 100644 --- a/src/views/historymode/HistoryMode.vue +++ b/src/views/historymode/HistoryMode.vue @@ -49,6 +49,7 @@ <script> import Layer from '@/utils/map/3dLayer'; +import mapLine from '@/utils/map/line'; import marks from '@/utils/map/marks'; import sector from '@/utils/map/sector'; import mapUtil from '@/utils/map/util'; @@ -137,15 +138,18 @@ // 鍒锋柊鍥句緥 const factor = this.factorDatas.factor[this.factorType]; sector.clearSector(); - this.drawRoadMap(factor); + this.drawRoadLine(factor); + // this.drawRoadMap(factor); this.drawMassMarks(factor); }, // 缁樺埗3D璧拌璺嚎鍥� drawRoadMap(e) { this.factorDatas.refreshHeight(this.factorType); - Layer.drawRoadMap(this.factorDatas, e, this.merge, this.setCenter); - // } + }, + drawRoadLine(e) { + this.factorDatas.refreshHeight(this.factorType); + mapLine.drawLine(this.factorDatas, e); }, drawMassMarks(e) { marks.drawMassMarks(this.factorDatas, e, (index) => { -- Gitblit v1.9.3