| commit | 0f044a1167696dbeb722867874bdb6dfe27ee0e6 | [log] [tgz] |
|---|---|---|
| author | pissang <bm2736892@gmail.com> | Fri Sep 10 17:17:07 2021 +0800 |
| committer | pissang <bm2736892@gmail.com> | Fri Sep 10 17:17:07 2021 +0800 |
| tree | 714ace93fbc1e1d0bf47efe2313428d8f58b04c5 | |
| parent | 4bf7f28efd5da9a454c7333d9a34e1818eb50441 [diff] |
fix dts link
diff --git a/src/editor/CodeMonaco.vue b/src/editor/CodeMonaco.vue index 7b5a003..a7e910c 100644 --- a/src/editor/CodeMonaco.vue +++ b/src/editor/CodeMonaco.vue
@@ -12,7 +12,8 @@ return fetch( ('local' in URL_PARAMS ? SCRIPT_URLS.localEChartsDir - : SCRIPT_URLS.echartsDir) + '/types/dist/echarts.d.ts', + : SCRIPT_URLS.echartsDir.replace('{{version}}', store.echartsVersion)) + + '/types/dist/echarts.d.ts', { mode: 'cors' }