fix: 修复ECharts动态import方式

- import('echarts') 返回模块命名空间对象,不是 { default }
- 移除错误的解构语法
This commit is contained in:
2026-05-06 07:50:47 +08:00
parent 92813fde49
commit 3cf702d9b8
+1 -1
View File
@@ -236,7 +236,7 @@ async function initMapChart() {
return
try {
const [{ default: echarts }, worldResponse] = await Promise.all([
const [echarts, worldResponse] = await Promise.all([
import('echarts'),
fetch('/world.json'),
])