Skip to content

页面之间如何传递参数? #86

@wincheer

Description

@wincheer

在Vue中,页面之间使用事件总线通过消息来传递参数。
现在MpVue中如果页面之间传递参数如何实现?

const EventBus = new Vue()
Object.defineProperties(Vue.prototype, {
  $bus: {
    get: function () {
      return EventBus
    }
  }
})

直接出错

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions