路由跳转标题不显示
PineSong96 opened this issue · comments
PineSong96 commented
router/index.js
setTitle(to.meta.title);
你的路由的title并没有放进meta,但是你这样写了所以标题没有生效
luichooy commented
router/index.js
setTitle(to.meta.title);
你的路由的title并没有放进meta,但是你这样写了所以标题没有生效
是的,感谢指正。不过项目中也可以根据情况灵活使用