|
@@ -1,8 +1,9 @@
|
|
|
import { ReplaceMode } from '@meta2d/chart-diagram';
|
|
|
+import { cdn } from './api';
|
|
|
|
|
|
//注册所有主题
|
|
|
export function registerTheme() {
|
|
|
- fetch('theme/dark.json')
|
|
|
+ fetch(cdn + '/theme/dark.json')
|
|
|
.then((r) => r.json())
|
|
|
.then((theme) => {
|
|
|
echarts.registerTheme('le-dark', theme);
|