You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2020/10/27 04:28:15 UTC

[incubator-echarts-examples] branch next updated: fix screenshot download title

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

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


The following commit(s) were added to refs/heads/next by this push:
     new 9df51c5  fix screenshot download title
9df51c5 is described below

commit 9df51c58da2271c78704e14f88fba0876e007938
Author: pissang <bm...@gmail.com>
AuthorDate: Tue Oct 27 12:28:03 2020 +0800

    fix screenshot download title
---
 src/editor/Preview.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/editor/Preview.vue b/src/editor/Preview.vue
index 118e45d..5886355 100644
--- a/src/editor/Preview.vue
+++ b/src/editor/Preview.vue
@@ -253,7 +253,7 @@ export default {
             if (this.sandbox) {
                 const url = this.sandbox.getDataURL();
                 const $a = document.createElement('a');
-                $a.download = URL_PARAMS.c + '.' + store.renderer === 'svg' ? 'svg' : 'png';
+                $a.download = URL_PARAMS.c + '.' + (store.renderer === 'svg' ? 'svg' : 'png');
                 $a.target = '_blank';
                 $a.href = url;
                 const evt = new MouseEvent('click', {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org