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

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

commit 70ad255635135403e48533a2468249529add92df
Author: pissang <[email protected]>
AuthorDate: Tue Feb 4 21:36:04 2025 +0800

    use cdn hosted in asf server to avoid csp issue
---
 src/components/LiveExample.vue | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/components/LiveExample.vue b/src/components/LiveExample.vue
index 4d12e23c..03a64684 100644
--- a/src/components/LiveExample.vue
+++ b/src/components/LiveExample.vue
@@ -86,9 +86,7 @@ let echartsLoadPromise;
 function fetchECharts() {
     return echartsLoadPromise || (echartsLoadPromise = new Promise(function 
(resolve, reject) {
         const script = document.createElement('script');
-        script.src = store.locale === 'zh'
-            ? 
'https://registry.npmmirror.com/echarts/latest/files/dist/echarts.min.js'
-            : 
'https://fastly.jsdelivr.net/npm/echarts@latest/dist/echarts.min.js';
+        script.src = (window.ECHARTS_WWW_VENDORS_CDN_ROOT || 
'https://fastly.jsdelivr.net/npm/') + 'echarts/dist/echarts.min.js';
         script.async = true;
         script.onload = function () {
             echartsLoadPromise = null;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to