Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
341 views
in Technique[技术] by (71.8m points)

vue的export default new Router问题

第一张图是我现在写死的title,第二张的xxx是我想将字符串保存在这个xxx里面,然后再给title的
image

image

这里的title值,是我写死的,怎么让这个title值变成可以从接口里面取的,或者说,我可以在export default new Router里面进行js操作吗?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

this.$route.meta.title设置当前路由


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...