From f4ad3d01ce7d22f27fb6ed88a0b4ab90658b58ca Mon Sep 17 00:00:00 2001
From: GuLiMmo <2820890765@qq.com>
Date: Thu, 29 Feb 2024 17:46:16 +0800
Subject: [PATCH] 航线库更新
---
src/components/waylinetool/index.vue | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/components/waylinetool/index.vue b/src/components/waylinetool/index.vue
index 14c21d3..74e1c71 100644
--- a/src/components/waylinetool/index.vue
+++ b/src/components/waylinetool/index.vue
@@ -596,7 +596,7 @@
const regx = /<Placemark>([\s\S]*?)<\/Placemark>/g
const points = content.match(regx) || []
// 当前选中的点
- const currentPoint = points[currentPosition.value]
+ const currentPoint = points[currentPosition.value] || ''
const actionRegx = /<wpml:action>([\s\S]*?)<\/wpml:action>/g
const actionsKML = currentPoint.match(actionRegx)
btnList.value.forEach((sBtn: sBtn) => {
--
Gitblit v1.9.3