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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM