|
@@ -3,7 +3,7 @@ import { cdn } from './api';
|
|
|
|
|
|
//注册所有主题
|
|
|
export function registerTheme() {
|
|
|
- fetch(cdn + '/theme/dark.json')
|
|
|
+ fetch((cdn ? cdn + '/v/' : '') + 'theme/dark.json')
|
|
|
.then((r) => r.json())
|
|
|
.then((theme) => {
|
|
|
echarts.registerTheme('le-dark', theme);
|