You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2021/09/10 09:17:45 UTC

[echarts-examples] branch dev updated: fix dts link

This is an automated email from the ASF dual-hosted git repository.

shenyi pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/echarts-examples.git


The following commit(s) were added to refs/heads/dev by this push:
     new 0f044a1  fix dts link
0f044a1 is described below

commit 0f044a1167696dbeb722867874bdb6dfe27ee0e6
Author: pissang <bm...@gmail.com>
AuthorDate: Fri Sep 10 17:17:07 2021 +0800

    fix dts link
---
 src/editor/CodeMonaco.vue | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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 @@ function loadTypes() {
   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'
     }

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org