commit | 57e6c3cc3193b5f1c3d64766dddb9072137512fb | [log] [tgz] |
---|---|---|
author | plainheart <yhen@all-my-life.cn> | Wed May 11 20:25:33 2022 +0800 |
committer | plainheart <yhen@all-my-life.cn> | Wed May 11 20:26:37 2022 +0800 |
tree | 7f6bc5d60265bea89479a793a96db77db0067edf | |
parent | 967dc5f4398de3531d2d1b78450c521cfa1ddb0c [diff] |
fix chart doesn't show after changing echarts version in `View` mode
diff --git a/src/editor/View.vue b/src/editor/View.vue index e6e96ad..4d9d382 100644 --- a/src/editor/View.vue +++ b/src/editor/View.vue
@@ -13,7 +13,8 @@ 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); }); } };