Display a different title after routing Jump vue project

1. Configure title on each route router / index.js of

  

 

 

 2. Run the command npm install vue-wechat-title --save install plug-ins in the project (in dependencies package.json file can be seen already installed "vue-wechat-title": "^ 2.0.5")

3. main.js introduced and used in the  

  import VueWechatTitle from 'vue-wechat-title'
  Vue.use(VueWechatTitle)
4. <router-view v-wechat- title = "$ route.meta.title" app.vue component /> using v-wechat-title = "$ route.meta.title" Properties tab.

  

Guess you like

Origin www.cnblogs.com/lhw888888/p/11442835.html