'a'
mh-two-thousand-and-two
2024-04-12 44d2c92345cd156a59fc327b3060292a282d2893
1
2
3
4
5
6
7
8
9
10
11
12
export const mocks = ['nodeId', 'componentName', '_componentId', 'uniquePrefix']
 
export function isPage () {
  // 百度小程序组件的id,某些情况下可能是number类型的0,不能直接return !this.ownerId 判断当前组件是否是Page
  // 否则会导致mounted不执行
  // 基础库 3.290.33 及以上 ownerId 为 null
  return typeof this.ownerId === 'undefined' || this.ownerId === null
}
 
export function initRelation (detail) {
  this.dispatch('__l', detail)
}