欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

vue cli2.0單頁(yè)面title修改方法

 更新時(shí)間:2018年06月07日 11:34:45   作者:Elvis_645e  
這篇文章主要介紹了vue cli2.0單頁(yè)面title修改方法,非常不錯(cuò),具有一定的參考借鑒,需要的朋友可以參考下

一、npm install vue-wechat-title --save  執(zhí)行命令

二、在main.js中添加   

 Vue.use(VueWechatTitle);
    Vue.config.productionTip= false

三、在router/index.js文件中添加  

routes: [{ path: '/',redirect: 'Home' },{ path: '/Home',name: 'Home',component: Home,
  meta:{
   title:'銀行開戶'
  }},],

四、在app.vue 中修改 router-view  修改為:<router-view v-wechat-title="$router.meta.title">

總結(jié)

以上所述是小編給大家介紹的vue cli2.0單頁(yè)面title修改方法,希望對(duì)大家有所幫助,如果大家有任何疑問請(qǐng)給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)腳本之家網(wǎng)站的支持!

相關(guān)文章

最新評(píng)論