From c7add9a81fe7970c441a936da4e20f6c97170374 Mon Sep 17 00:00:00 2001 From: handongxun Date: Thu, 26 May 2022 15:25:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BE=AE=E4=BF=A1ad=E7=BB=84=E4=BB=B6:a?= =?UTF-8?q?dpid=20=E5=8A=A8=E6=80=81=E8=AE=BE=E7=BD=AE=E6=97=A0=E6=95=88?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/uni-template-compiler/lib/module.uniad.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/uni-template-compiler/lib/module.uniad.js b/packages/uni-template-compiler/lib/module.uniad.js index e0c08498e..897b5d3c2 100644 --- a/packages/uni-template-compiler/lib/module.uniad.js +++ b/packages/uni-template-compiler/lib/module.uniad.js @@ -5,7 +5,7 @@ module.exports = { warn }) { 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' } if (AD_COMPONENTS.indexOf(el.tag) > -1) { -- GitLab