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

commit 57e6c3cc3193b5f1c3d64766dddb9072137512fb
Author: plainheart <y...@all-my-life.cn>
AuthorDate: Wed May 11 20:25:33 2022 +0800

    fix chart doesn't show after changing echarts version in `View` mode
---
 src/editor/View.vue | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/editor/View.vue b/src/editor/View.vue
index e6e96ad1..4d9d3828 100644
--- a/src/editor/View.vue
+++ b/src/editor/View.vue
@@ -13,7 +13,8 @@ export default {
 
   mounted() {
     loadExampleCode().then((code) => {
-      store.runCode = parseSourceCode(code);
+      // set sourceCode here as there is no editor in view mode
+      store.sourceCode = store.runCode = parseSourceCode(code);
     });
   }
 };


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

Reply via email to