mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
fix: 调整echarts-stat使用方式,兼容vite打包异步非esm模块 (#5672)
This commit is contained in:
parent
2bdb5c6a97
commit
c1b1228f16
@ -308,7 +308,7 @@ export class Chart extends React.Component<ChartProps> {
|
||||
import('echarts/extension/bmap/bmap')
|
||||
]).then(async ([echarts, ecStat]) => {
|
||||
(window as any).echarts = echarts;
|
||||
(window as any).ecStat = ecStat;
|
||||
(window as any).ecStat = ecStat?.default || ecStat;
|
||||
let theme = 'default';
|
||||
|
||||
if (chartTheme) {
|
||||
|
Loading…
Reference in New Issue
Block a user