Almost_in
Almost_in
  • 发布:2025-02-14 11:39
  • 更新:2025-02-14 11:39
  • 阅读:10

uts组件插件 使用this.$emit 时提示 fireEvent must be called by main thread

分类:uts

要在 emit 触发的外层使用
UTSAndroid.getDispatcher("main").async(function (_) {

}, null)
包括(必须在第一层)

UTSAndroid.getDispatcher("main").async(function (_) {  
    this.$emit('disconnectCallBack')  
}, null)
0 关注 分享

要回复文章请先登录注册