1.npm install vue-wechat-title --save
2.引入main.js Vue.use(require('vue-wechat-title'));
3.替换app.vue 中的rount <router-view v-wechat-title="$route.meta.title"></router-view>
4.配置rount export default new Router({
routes: [
{
path: '/',
name: 'main',
component: main,
children:[
{
path: '/',
name: 'home',
component: home,
meta: {
title: '首页'
}
}
]
}
]
})
x修改 微信公众号头部标题
最新推荐文章于 2022-05-27 00:11:01 发布