Skip to content

The Events api $on, $off $once is #5

@Relax-87

Description

@Relax-87

Vue3 取消了 on off等
请将 bus.js 的下列代码段修改

原:
     on (event, callback) {
        this.$on(event, callback)
      },
      off (event, callback) {
        this.$off(event, callback)
      }
改:
      on (event, callback) {
        this.$parent.$on(event, callback)
      },
      off (event, callback) {
        this.$parent.$off(event, callback)
      }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions