vue 页面刷新还在当前路由

let current = this.$router.history.current;
    this.activeIndex = current.path;
    if (current.meta.parent) {
      this.activeIndex = current.meta.parent;
    }
原文地址:https://www.cnblogs.com/Byme/p/15048987.html