r***@beyah.cn
r***@beyah.cn
  • 发布:2023-06-05 07:07
  • 更新:2023-06-05 09:19
  • 阅读:208

为什么uni.redirectTo是就不能加上像uni.navigateTo一样可以使用EventChannel呢?

分类:uni-app
    uni.redirectTo({  
                    url:'/pages/test/test-result/test-result',  
                    success(res) {  
                        res.eventChannel.emit("data", data)  
                    }  
                })  

res中找不到eventChannel。。。。

2023-06-05 07:07 负责人:无 分享
已邀请:
Diligent_UI

Diligent_UI - 【插件开发】【专治疑难杂症】【多款插件已上架:https://ext.dcloud.net.cn/publisher?id=193663(微信搜索飘逸科技UI小程序直接体验)】【骗子请绕道】问题咨询请加QQ群:120594820,代表作灵感实用工具小程序

uni.redirectTo跳转当前页面都会销毁了,还怎么通讯呢

  • r***@beyah.cn (作者)

    这倒也是,不过我只想通过eventChannel传参数过去,拼接url怕长度过长

    2023-06-06 06:05

  • 无为而治

    大佬,那 uni.redirectTo能像uni.redirectTo那样加缓慢进出的动效吗?如何加啊?这个api太生硬了

    2023-12-13 15:51

  • Diligent_UI

    回复 无为而治: 应该加不了

    2023-12-13 17:19

该问题目前已经被锁定, 无法添加新回复