micro-app icon indicating copy to clipboard operation
micro-app copied to clipboard

microApp.addDataListener 不触发

Open mathYang1224 opened this issue 1 year ago • 4 comments

Describe the bug

A clear and concise description of what the bug is. microApp.addDataListener 不触发偶现, name 想同情况下 列表页跳详情页再跳回列表页不触发

To Reproduce

// 主应用 // name 为变量 microApp.setData(name, data) // 子应用 // 监听基座下发的数据变化 window.microApp.addDataListener((data) => { // 当基座下发跳转指令时进行跳转 if (data.path) { router.push(data.path) } })

Environment

  • micro-app version: "@micro-zoe/micro-app": "v1.0.0-rc.5",
  • framework of base app & version:
  • framework of sub app & version:
  • Build tools & version:

mathYang1224 avatar Oct 16 '24 07:10 mathYang1224