fix: 修复ECharts动态import方式
- import('echarts') 返回模块命名空间对象,不是 { default }
- 移除错误的解构语法
This commit is contained in:
@@ -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'),
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user