fix: 【系统设置】-查看世界村地图数据,加载时间过长,可能导致浏览器崩溃

This commit is contained in:
dataeaseShu 2023-12-29 10:50:54 +08:00
parent fe172b1588
commit 32df66438e

View File

@ -128,7 +128,7 @@ const selectedData = ref(null)
const handleNodeClick = async (data: Tree) => {
selectedData.value = data
const geoJson = cloneDeep(await getGeoJsonFile(data['id']))
selectedData.value['geoJson'] = geoJson
selectedData.value['geoJson'] = JSON.stringify(geoJson)
const pid = data['pid']
if (pid) {
const parent = areaTreeRef.value.getNode(pid)