1.在router中添加 code: meta: { title: "sunyifang.cv" } 2.在main.js中加入如下代码 注意要在new Vue上面 code: router.beforeEach((to, from, next) => { if (to.meta.title) { document.title = to.meta.title } next() }) 然后就ok啦~ 每一个路由想要更换时都可以显示不同的title