Vue通过判断控制页面title

this.$nextTick(() => {
      if (this.orderType == 4) {
        document.title = "购买图文复诊服务";
      }else if(this.orderType == 7){
        document.title = "购买电话复诊服务";
      }else if(this.orderType == 6){
        document.title = "购买在线咨询服务";
      }
});

通过this.$route.meta,监测路由变化修改页面title

https://blog.csdn.net/around_primary/article/details/80683104

原文地址:https://www.cnblogs.com/fkcqwq/p/13091830.html