vue 页面刷新还在当前路由

let current = this.$router.history.current;
    this.activeIndex = current.path;
    if (current.meta.parent) {
      this.activeIndex = current.meta.parent;
    }

 

posted @ 2021-07-23 15:14  abcByme  阅读(647)  评论(0编辑  收藏  举报