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/11/25 05:35:51 UTC

[incubator-echarts-handbook] branch master updated: fix type error

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 07d57fe  fix type error
07d57fe is described below

commit 07d57fee0c139b6762569c5bdfbfc27e3136e41b
Author: pissang <bm...@gmail.com>
AuthorDate: Wed Nov 25 13:35:36 2020 +0800

    fix type error
---
 components/partials/SidebarNavItem.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/partials/SidebarNavItem.vue b/components/partials/SidebarNavItem.vue
index a250064..4cf44ad 100644
--- a/components/partials/SidebarNavItem.vue
+++ b/components/partials/SidebarNavItem.vue
@@ -71,7 +71,7 @@ export default Vue.extend({
 
   data() {
     const path = this.parentPath + '_' + this.item.dir;
-    const isSelfOrChildActived = this.$route.params.post.startsWith(path);
+    const isSelfOrChildActived = (this.$route.params.post + '').startsWith(path);
     return {
       get path(): string {
         return path;


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