用户2849282
用户2849282
  • 发布:2025-07-04 11:46
  • 更新:2025-07-04 11:48
  • 阅读:60

遇到一个问题 使用$on 监听回调 函数会执行  对应的数据也会更新 但是数据对应的视图不会变化 需要二次触发回调 才会更新视图

分类:uni-app
2025-07-04 11:46 负责人:无 分享
已邀请:
DCloud_UNI_JBB

DCloud_UNI_JBB

您好,麻烦发下hx版本,运行平台以及可复现demo

  • 用户2849282 (作者)

    才接手项目 "@dcloudio/uni-h5": "^2.0.0-29320201014001", 没有demo 还在本地开发 // uni.$on("uAvatarCropper", (path) => {

    // this.avatar = path;

    // this.$nextTick(() => {

    // this.avatar = path;

    // this.uploadFileFun(path);

    // });

    // }); 代码是这样写的

    2025-07-04 11:51

要回复问题请先登录注册