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 9e5cc642 fix(explore): only trigger `onHashChange` after 
initialization when hash is present
9e5cc642 is described below

commit 9e5cc642cc83454b56e39999c18fcbfec7ecf2a1
Author: plainheart <[email protected]>
AuthorDate: Mon Oct 9 03:25:07 2023 +0800

    fix(explore): only trigger `onHashChange` after initialization when hash is 
present
---
 src/explore/Explore.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/explore/Explore.vue b/src/explore/Explore.vue
index 3d79da37..c0d226e2 100644
--- a/src/explore/Explore.vue
+++ b/src/explore/Explore.vue
@@ -246,7 +246,7 @@ export default {
         });
 
         setTimeout(() => {
-          this.onHashChange();
+          location.hash && this.onHashChange();
           window.addEventListener('hashchange', this.onHashChange);
         }, 0);
       });


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

Reply via email to