From 3e21fcfb734f678c66467c0e579b62d6b7429836 Mon Sep 17 00:00:00 2001 From: qiang Date: Fri, 11 Jun 2021 12:06:24 +0800 Subject: [PATCH] =?UTF-8?q?fix(mp-baidu):=20=E4=BF=AE=E5=A4=8D=E5=9F=BA?= =?UTF-8?q?=E7=A1=80=E5=BA=93=203.290.33+=20=E9=A1=B5=E9=9D=A2=20mounted?= =?UTF-8?q?=20=E6=89=A7=E8=A1=8C=E4=B8=A4=E6=AC=A1=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20fixed=20#2642?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/platforms/mp-baidu/runtime/wrapper/util.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/platforms/mp-baidu/runtime/wrapper/util.js b/src/platforms/mp-baidu/runtime/wrapper/util.js index 17ed55644..f2e4a61dc 100644 --- a/src/platforms/mp-baidu/runtime/wrapper/util.js +++ b/src/platforms/mp-baidu/runtime/wrapper/util.js @@ -3,7 +3,8 @@ export const mocks = ['nodeId', 'componentName', '_componentId', 'uniquePrefix'] export function isPage () { // 百度小程序组件的id,某些情况下可能是number类型的0,不能直接return !this.ownerId 判断当前组件是否是Page // 否则会导致mounted不执行 - return typeof this.ownerId === 'undefined' + // 基础库 3.290.33 及以上 ownerId 为 null + return typeof this.ownerId === 'undefined' || this.ownerId === null } export function initRelation (detail) { -- GitLab