diff --git a/src/platforms/mp-baidu/runtime/wrapper/util.js b/src/platforms/mp-baidu/runtime/wrapper/util.js index 17ed556440f275657b2559b7792358127cc8e943..f2e4a61dca950a31d931d2fc93ed845b4fc4fff4 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) {