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 <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
