From 41051dcf33148863d61f33944e49ab08381291dd Mon Sep 17 00:00:00 2001 From: Iruka <1017819588@qq.com> Date: Fri, 3 Jan 2025 12:15:37 +0800 Subject: [PATCH] . --- pages/index-map.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pages/index-map.vue b/pages/index-map.vue index e8ab4ae..5470ba4 100644 --- a/pages/index-map.vue +++ b/pages/index-map.vue @@ -908,8 +908,10 @@ boundary = JSON.parse(boundary) if (boundary.length) { let points = [] - boundary.forEach((item) => { - points.push([item[1], item[0]]) + boundary.forEach((items) => { + items.forEach(item => { + points.push([item[1], item[0]]) + }); }) //创建面对象 var polygon = L.polygon(points, {