You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by zi...@apache.org on 2026/04/22 01:28:32 UTC
(echarts-examples) 01/01: fix(editor): restore PR preview bundle routing
This is an automated email from the ASF dual-hosted git repository.
Justin-ZS pushed a commit to branch codex/fix-pr-preview-version
in repository https://gitbox.apache.org/repos/asf/echarts-examples.git
commit 903c6905c7c90af014eef3adcc10daf6898d54d3
Author: Justin-ZS <jz...@gmail.com>
AuthorDate: Wed Apr 22 09:28:05 2026 +0800
fix(editor): restore PR preview bundle routing
---
src/editor/Preview.vue | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/editor/Preview.vue b/src/editor/Preview.vue
index 6cb204d7..a1567866 100644
--- a/src/editor/Preview.vue
+++ b/src/editor/Preview.vue
@@ -186,13 +186,11 @@ function getScripts(nightly) {
: 'echartsDir'
];
- // TODO CSP 问题
- // const echartsDir = store.isPR
- // ? echartsDirTpl.replace('{{PR_NUMBER}}', store.prNumber)
- // : echartsDirTpl.replace('{{version}}', store.echartsVersion);
const echartsDir = isLocal
? SCRIPT_URLS.localEChartsDir
- : SCRIPT_URLS.latestEChartsDir;
+ : store.isPR
+ ? echartsDirTpl.replace('{{PR_NUMBER}}', store.prNumber)
+ : echartsDirTpl.replace('{{version}}', store.echartsVersion);
const code = store.runCode;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org