javascript - In the vue-cli project, can sub-components dynamically change the meta attributes in routes?
学习ing
学习ing 2017-07-05 10:38:30
0
1
790

If you want to change the title of WeChat through the title attribute set in the meta of the route, and if you want to get the product details in the product details section, you need to dynamically get the title attribute of the meta in the route in the sub-component and change it. Please do this. Is it possible?

学习ing
学习ing

reply all (1)
滿天的星座

Use this.$route.meta.pageTitle = 'Title';

in the child component
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!