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 eee18b03 fix: adjust share url length limit
eee18b03 is described below

commit eee18b0353da67cd196b1dbe4fc7d8a201c00bef
Author: plainheart <[email protected]>
AuthorDate: Mon Nov 10 23:22:33 2025 +0800

    fix: adjust share url length limit
---
 src/editor/Preview.vue | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/editor/Preview.vue b/src/editor/Preview.vue
index 9373b86c..6cb204d7 100644
--- a/src/editor/Preview.vue
+++ b/src/editor/Preview.vue
@@ -518,7 +518,8 @@ export default {
       }
       ctx.isShareBusy = true;
       const sharableURL = ctx.getSharableURL();
-      if (sharableURL.length < 1e4) {
+      // currently ASF server has a limit of approx 8204 characters
+      if (sharableURL.length < 8000) {
         return copyToClipboard(sharableURL);
       }
       // test whether the sharable URL is valid
@@ -536,6 +537,7 @@ export default {
               customClass: 'toast-declaration'
             });
           } else {
+            // might be another error but we can still try to copy the URL
             copyToClipboard(sharableURL);
           }
         }


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

Reply via email to