百度小程序需要在 onshow 中设置web化的想关信息
onShow: function(){
var that = this;
swan.setPageInfo({
// 必填字段
title: that.data.article.title,
keywords: '',
description: that.data.article.desc,
// 选填字段
releaseDate: that.data.article.publish,
image: that.data.article.img
});
}
想关阅读: