From 8b92f8cb5763eaf8a8a5d93a4690c923c2de1a85 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Thu, 03 Apr 2025 14:34:31 +0800
Subject: [PATCH] feat: 任务管理功能
---
src/views/Home/useMapAggregation/useMapAggregation.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/views/Home/useMapAggregation/useMapAggregation.js b/src/views/Home/useMapAggregation/useMapAggregation.js
index 5fd86b1..1617249 100644
--- a/src/views/Home/useMapAggregation/useMapAggregation.js
+++ b/src/views/Home/useMapAggregation/useMapAggregation.js
@@ -131,8 +131,8 @@
const defaultDir = `${VITE_APP_BASE}${VITE_APP_ENV === 'development' ? 'public/' : ''}geoJson/100000/`;
const getFiler = async url => {
- const gJson = await import(/* @vite-ignore */ url);
- return JSON.parse(JSON.stringify(gJson));
+ const res = await fetch(url);
+ return await res.json()
};
const getOutLine = async (jsonPathPre, hierarchy) => {
const parentGJson = await getFiler(`${defaultDir}${jsonPathPre}/index.json`);
--
Gitblit v1.9.3