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

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


The following commit(s) were added to refs/heads/master by this push:
     new 835cbd7  fix wrong SSR client hydrate target
835cbd7 is described below

commit 835cbd7446253b19fd8e149b666bd46dc3a4bfdf
Author: plainheart <y...@all-my-life.cn>
AuthorDate: Wed May 8 09:33:22 2024 +0800

    fix wrong SSR client hydrate target
---
 contents/en/basics/release-note/5-5-0.md    | 4 ++--
 contents/en/how-to/cross-platform/server.md | 4 ++--
 contents/zh/basics/release-note/5-5-0.md    | 4 ++--
 contents/zh/how-to/cross-platform/server.md | 4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/contents/en/basics/release-note/5-5-0.md 
b/contents/en/basics/release-note/5-5-0.md
index 0c0357a..42af8b3 100644
--- a/contents/en/basics/release-note/5-5-0.md
+++ b/contents/en/basics/release-note/5-5-0.md
@@ -73,7 +73,7 @@ The client adds the obtained SVG string to the container and 
binds the lightweig
 <script>
 const ssrClient = window['echarts-ssr-client'];
 
-let isSeriesShown = {
+const isSeriesShown = {
   a: true,
   b: true
 };
@@ -83,7 +83,7 @@ function updateChart(svgStr) {
   container.innerHTML = svgStr;
 
   // Use lightweight runtime to give the chart interactive capabilities
-  ssrClient.hydrate(main, {
+  ssrClient.hydrate(container, {
     on: {
       click: (params) => {
         if (params.ssrType === 'legend') {
diff --git a/contents/en/how-to/cross-platform/server.md 
b/contents/en/how-to/cross-platform/server.md
index 7c20377..92b4bc9 100644
--- a/contents/en/how-to/cross-platform/server.md
+++ b/contents/en/how-to/cross-platform/server.md
@@ -192,7 +192,7 @@ Starting from version v5.5.0, if the chart only needs the 
following effects and
 <script>
 const ssrClient = window['echarts-ssr-client'];
 
-let isSeriesShown = {
+const isSeriesShown = {
   a: true,
   b: true
 };
@@ -202,7 +202,7 @@ function updateChart(svgStr) {
   container.innerHTML = svgStr;
 
   // Use the lightweight runtime to give the chart interactive capabilities
-  ssrClient.hydrate(main, {
+  ssrClient.hydrate(container, {
     on: {
       click: (params) => {
         if (params.ssrType === 'legend') {
diff --git a/contents/zh/basics/release-note/5-5-0.md 
b/contents/zh/basics/release-note/5-5-0.md
index 2f603f0..1456678 100644
--- a/contents/zh/basics/release-note/5-5-0.md
+++ b/contents/zh/basics/release-note/5-5-0.md
@@ -73,7 +73,7 @@ res.end();
 <script>
 const ssrClient = window['echarts-ssr-client'];
 
-let isSeriesShown = {
+const isSeriesShown = {
   a: true,
   b: true
 };
@@ -83,7 +83,7 @@ function updateChart(svgStr) {
   container.innerHTML = svgStr;
 
   // 使用轻量运行时赋予图表交互能力
-  ssrClient.hydrate(main, {
+  ssrClient.hydrate(container, {
     on: {
       click: (params) => {
         if (params.ssrType === 'legend') {
diff --git a/contents/zh/how-to/cross-platform/server.md 
b/contents/zh/how-to/cross-platform/server.md
index cc271b4..16be843 100644
--- a/contents/zh/how-to/cross-platform/server.md
+++ b/contents/zh/how-to/cross-platform/server.md
@@ -192,7 +192,7 @@ echarts.setPlatformAPI({
 <script>
 const ssrClient = window['echarts-ssr-client'];
 
-let isSeriesShown = {
+const isSeriesShown = {
   a: true,
   b: true
 };
@@ -202,7 +202,7 @@ function updateChart(svgStr) {
   container.innerHTML = svgStr;
 
   // 使用轻量运行时赋予图表交互能力
-  ssrClient.hydrate(main, {
+  ssrClient.hydrate(container, {
     on: {
       click: (params) => {
         if (params.ssrType === 'legend') {


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

Reply via email to