This is an automated email from the ASF dual-hosted git repository. wangzx pushed a commit to branch gh-pages in repository https://gitbox.apache.org/repos/asf/echarts-examples.git
The following commit(s) were added to refs/heads/gh-pages by this push: new 64343bb6 fix example cannot download when using nightly version. 64343bb6 is described below commit 64343bb638aca2bba1f87862aeb5f35bac0c29d2 Author: plainheart <y...@all-my-life.cn> AuthorDate: Tue Nov 1 00:23:45 2022 +0800 fix example cannot download when using nightly version. --- src/editor/downloadExample.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/editor/downloadExample.js b/src/editor/downloadExample.js index 3f897b5c..78252d03 100644 --- a/src/editor/downloadExample.js +++ b/src/editor/downloadExample.js @@ -12,10 +12,11 @@ export function download(sourceHeader) { ? '<script type="text/javascript" src="https://fastly.jsdelivr.net/npm/jquery"></script>' : ''; - const echartsDir = SCRIPT_URLS.echartsDir.replace( - '{{version}}', - store.echartsVersion - ); + const echartsDir = SCRIPT_URLS[ + store.echartsVersion.indexOf('dev') > -1 + ? 'echartsNightlyDir' + : 'echartsDir' + ].replace('{{version}}', store.echartsVersion); const echarts4Dir = SCRIPT_URLS.echartsDir.replace('{{version}}', '4.9.0'); const code = `<!-- ${sourceHeader} --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org