提交 cd3269ef 编写于 作者: d-u-a's avatar d-u-a

fix: 微信ad组件:adpid 动态设置无效问题

上级 86204f2b
...@@ -5,7 +5,7 @@ module.exports = { ...@@ -5,7 +5,7 @@ module.exports = {
warn warn
}) { }) {
if (process.env.UNI_PLATFORM === 'mp-weixin') { if (process.env.UNI_PLATFORM === 'mp-weixin') {
if (el.tag === 'ad' && el.attrsMap.adpid) { if (el.tag === 'ad' && (el.attrsMap.adpid || el.attrsMap[':adpid'])) {
el.tag = 'uniad' el.tag = 'uniad'
} }
if (AD_COMPONENTS.indexOf(el.tag) > -1) { if (AD_COMPONENTS.indexOf(el.tag) > -1) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册