Merge pull request #7463 from dataease/pr@dev-v2_dzz

fix: 【系统设置】-查看世界村地图数据,加载时间过长,可能导致浏览器崩溃
This commit is contained in:
dataeaseShu 2023-12-29 10:54:51 +08:00 committed by GitHub
commit 7ea61e91fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)